ObserveGadgetCompleteContext
Defined in: agent/hooks.ts:244
Context provided when a gadget execution completes. Read-only observation point.
Properties
Section titled “Properties”breaksLoop?
Section titled “breaksLoop?”
optionalbreaksLoop:boolean
Defined in: agent/hooks.ts:255
optionalcost:number
Defined in: agent/hooks.ts:257
Cost of gadget execution in USD. 0 if gadget didn’t report cost.
error?
Section titled “error?”
optionalerror:string
Defined in: agent/hooks.ts:253
executionTimeMs
Section titled “executionTimeMs”executionTimeMs:
number
Defined in: agent/hooks.ts:254
finalResult?
Section titled “finalResult?”
optionalfinalResult:string
Defined in: agent/hooks.ts:252
Final result after interceptors
gadgetName
Section titled “gadgetName”gadgetName:
string
Defined in: agent/hooks.ts:246
invocationId
Section titled “invocationId”invocationId:
string
Defined in: agent/hooks.ts:247
iteration
Section titled “iteration”iteration:
number
Defined in: agent/hooks.ts:245
logger
Section titled “logger”logger:
Logger<ILogObj>
Defined in: agent/hooks.ts:258
originalResult?
Section titled “originalResult?”
optionaloriginalResult:string
Defined in: agent/hooks.ts:250
Original result before interceptors
parameters
Section titled “parameters”parameters:
Readonly<Record<string,unknown>>
Defined in: agent/hooks.ts:248
subagentContext?
Section titled “subagentContext?”
optionalsubagentContext:SubagentContext
Defined in: agent/hooks.ts:260
Present when event is from a subagent (undefined for top-level agent)