improvement(tool-input): general abstraction to enrich agent context, reuse visibility helpers (#2872)

* add abstraction for schema enrichment, improve agent KB block experience for tags, fix visibility of subblocks

* cleanup code

* consolidate

* fix workflow tool react query

* fix deployed context propagation

* fix tests
This commit is contained in:
Vikhyath Mondreti
2026-01-17 19:13:27 -08:00
committed by GitHub
parent b8b20576d3
commit 0fcd52683a
25 changed files with 967 additions and 342 deletions

View File

@@ -321,6 +321,7 @@ export class AgentBlockHandler implements BlockHandler {
_context: {
workflowId: ctx.workflowId,
workspaceId: ctx.workspaceId,
isDeployedContext: ctx.isDeployedContext,
},
},
false,
@@ -1074,6 +1075,7 @@ export class AgentBlockHandler implements BlockHandler {
workflowVariables: ctx.workflowVariables || {},
blockData,
blockNameMapping,
isDeployedContext: ctx.isDeployedContext,
})
return this.processProviderResponse(response, block, responseFormat)

View File

@@ -78,6 +78,7 @@ export class ApiBlockHandler implements BlockHandler {
workflowId: ctx.workflowId,
workspaceId: ctx.workspaceId,
executionId: ctx.executionId,
isDeployedContext: ctx.isDeployedContext,
},
},
false,

View File

@@ -40,6 +40,7 @@ export async function evaluateConditionExpression(
_context: {
workflowId: ctx.workflowId,
workspaceId: ctx.workspaceId,
isDeployedContext: ctx.isDeployedContext,
},
},
false,

View File

@@ -38,6 +38,7 @@ export class FunctionBlockHandler implements BlockHandler {
_context: {
workflowId: ctx.workflowId,
workspaceId: ctx.workspaceId,
isDeployedContext: ctx.isDeployedContext,
},
},
false,

View File

@@ -66,6 +66,7 @@ export class GenericBlockHandler implements BlockHandler {
workflowId: ctx.workflowId,
workspaceId: ctx.workspaceId,
executionId: ctx.executionId,
isDeployedContext: ctx.isDeployedContext,
},
},
false,

View File

@@ -627,6 +627,7 @@ export class HumanInTheLoopBlockHandler implements BlockHandler {
_context: {
workflowId: ctx.workflowId,
workspaceId: ctx.workspaceId,
isDeployedContext: ctx.isDeployedContext,
},
blockData: blockDataWithPause,
blockNameMapping: blockNameMappingWithPause,