Skip to content

Commit d19632a

Browse files
author
Vikhyath Mondreti
committed
fix typing issue
1 parent 35ac68f commit d19632a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

apps/sim/tools/function/execute.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ export const functionExecuteTool: ToolConfig<CodeExecutionInput, CodeExecutionOu
2828
description: 'Environment variables to make available during execution',
2929
default: {},
3030
},
31+
blockData: {
32+
type: 'object',
33+
required: false,
34+
description: 'Block output data for variable resolution',
35+
default: {},
36+
},
37+
blockNameMapping: {
38+
type: 'object',
39+
required: false,
40+
description: 'Mapping of block names to block IDs',
41+
default: {},
42+
},
3143
},
3244

3345
request: {

apps/sim/tools/function/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export interface CodeExecutionInput {
55
timeout?: number
66
memoryLimit?: number
77
envVars?: Record<string, string>
8+
blockData?: Record<string, any>
9+
blockNameMapping?: Record<string, string>
810
_context?: {
911
workflowId?: string
1012
}

0 commit comments

Comments
 (0)