ShellTimeoutBudget
ShellTimeoutBudget = {
ceilingMs:number;kind:"granted";requested:boolean;timeoutMs:number; } | {ceilingMs:number;kind:"refused";message:string;requestedMs:number; }
Defined in: packages/agent/src/tools/GthDevToolkit.ts:108
[[EXT-125]] — the outcome of resolving ONE call’s time budget, before anything is spawned.
A discriminated union rather than a number plus an out-of-band error, because the refused case
must be impossible to use as a budget by accident: there is no timeoutMs on that arm to read.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ ceilingMs: number; kind: "granted"; requested: boolean; timeoutMs: number; }
ceilingMs
Section titled “ceilingMs”ceilingMs:
number
The ceiling in force for this call, in ms.
kind:
"granted"
requested
Section titled “requested”requested:
boolean
Whether the CALL named this budget, as opposed to inheriting the configured default.
timeoutMs
Section titled “timeoutMs”timeoutMs:
number
The wall-clock budget to arm, in ms.
Type Literal
Section titled “Type Literal”{ ceilingMs: number; kind: "refused"; message: string; requestedMs: number; }
ceilingMs
Section titled “ceilingMs”ceilingMs:
number
The ceiling it exceeded, in ms.
kind:
"refused"
message
Section titled “message”message:
string
The model-facing refusal to return INSTEAD of running anything.
requestedMs
Section titled “requestedMs”requestedMs:
number
What the call asked for, in ms.