Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/tools / code-mode / createCodeExecuteTool
Function: createCodeExecuteTool()
ts
function createCodeExecuteTool(opts): Tool<{
source: string;
}, string>;Defined in: packages/tools/src/code-mode/meta-tools.ts:168
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
| Parameter | Type |
|---|---|
opts | CodeExecuteToolOptions |
Returns
Tool<{ source: string; }, string>