ScriptRow
Interface: ScriptRow
Defined in: src/core/agent/scripts/types.ts:45
One call of a declared code-running tool (Tool.script), on the findings
ledger — F1 (the program submitted) and F2 (what its execution record
proves), and nothing about any value.
Filed by the dispatch loop (stages/toolCalls.ts) while
.namesAndNumbersFromEvidence({ code: 'match' }) or
.scriptTravelsWithTheAnswer() is on, through ONE writer (rows.ts ·
recordScriptRow): the call's row is KEPT CURRENT — its outcome is written
when the call settles, and a row that never settles stays submitted. At
the next turn boundary (seed) the row keeps its facts and loses its text.
Properties
argument
readonlyargument:string
Defined in: src/core/agent/scripts/types.ts:59
The declared argument that carried the program.
bytes
readonlybytes:number
Defined in: src/core/agent/scripts/types.ts:63
UTF-8 bytes of the program submitted to the tool.
dispatch
readonlydispatch:number
Defined in: src/core/agent/scripts/types.ts:55
The library's identity for the call: the 1-based order of the actual
dispatch within its turn (rows.ts · recordScriptRow). A pause and its
settlement share it; a later call that reuses the provider id is a new
dispatch. Rows are counted, read and matched by it.
exitCode?
readonlyoptionalexitCode?:number
Defined in: src/core/agent/scripts/types.ts:73
Exactly the runner's exit code, only when it supplied one.
iteration
readonlyiteration:number
Defined in: src/core/agent/scripts/types.ts:82
kind
readonlykind:"script"
Defined in: src/core/agent/scripts/types.ts:46
language?
readonlyoptionallanguage?:string
Defined in: src/core/agent/scripts/types.ts:61
The declared language, when the tool declared one.
lines
readonlylines:number
Defined in: src/core/agent/scripts/types.ts:65
Lines of that program (LF-separated; 0 for an empty program).
outcome
readonlyoutcome:ScriptLabel
Defined in: src/core/agent/scripts/types.ts:71
resultWithheld?
readonlyoptionalresultWithheld?:"over-ceiling"
Defined in: src/core/agent/scripts/types.ts:77
The tool's own resultCeiling replaced the delivered result.
rewritten?
readonlyoptionalrewritten?:true
Defined in: src/core/agent/scripts/types.ts:79
A before-tool rule changed the program before dispatch; the earlier text is on no row.
serviceError?
readonlyoptionalserviceError?:true
Defined in: src/core/agent/scripts/types.ts:75
The runner's failure verdict was the service's, with no exit code.
text?
readonlyoptionaltext?:string
Defined in: src/core/agent/scripts/types.ts:70
The program submitted to the tool, byte for byte. ABSENT over
MAX_SCRIPT_BYTES, and after the row's turn ended.
tool
readonlytool:string
Defined in: src/core/agent/scripts/types.ts:57
The name the model called.
toolCallId
readonlytoolCallId:string
Defined in: src/core/agent/scripts/types.ts:48
The provider's id for the call — display only; two calls may share one.
turn
readonlyturn:number
Defined in: src/core/agent/scripts/types.ts:81
AgentState.turnNumber when the call was made.
