Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/tools / code-mode / createCodeExecuteTool

Function: createCodeExecuteTool()

ts
function createCodeExecuteTool(opts): Tool<CodeExecuteInput, string>;

Defined in: packages/tools/src/code-mode/meta-tools.ts:216

Build the code_execute meta-tool. Its output is the script's final value rendered as a string, so the executor's maxResultTokens / 'spill-to-file' pipeline bounds even a large final result (WI-10).

Parameters

ParameterType
optsCodeExecuteToolOptions

Returns

Tool&lt;CodeExecuteInput, string&gt;

Stable