Skip to content

Graphorin API reference v0.12.1


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

Interface: CodeExecuteToolOptions

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

Configuration for createCodeExecuteTool.

Properties

PropertyModifierTypeDescriptionDefined in
allowedToolsreadonlyreadonly string[]Names the script may call. Discovered (deferred) names may be added.packages/tools/src/code-mode/meta-tools.ts:159
approvalGatedTools?readonlyreadonly string[]Approval-gated tool names (TL-8) - listed in the catalogue with a call-directly marker (they cannot suspend for HITL mid-script).packages/tools/src/code-mode/meta-tools.ts:177
executeToolreadonlyCodeExecuteBridgeHost bridge for each tools.<name>(args) call.packages/tools/src/code-mode/meta-tools.ts:161
limits?readonlyCodeExecuteLimitsSandbox limits.packages/tools/src/code-mode/meta-tools.ts:163
projectionreadonlyCodeApiProjectionProjection over the eager tool set, embedded in the description.packages/tools/src/code-mode/meta-tools.ts:157
run?readonlyCodeModeRunnerThe code-mode runtime executing the script (E3): any CodeModeRunner - a subprocess provider, a remote runner, a test fake. Default runBridgedSource (in-process worker_threads). The runner receives only the script source, the allowed tool names, the dispatch bridge and limits - credentials, RunState and policy stay on the harness side.packages/tools/src/code-mode/meta-tools.ts:172