AfterLLMCallControllerContext
Defined in: agent/hooks.ts:501
Context for after LLM call controller.
Properties
Section titled “Properties”finalMessage
Section titled “finalMessage”finalMessage:
string
Defined in: agent/hooks.ts:510
The final message (after interceptors) that will be added to history
finishReason
Section titled “finishReason”finishReason:
string|null
Defined in: agent/hooks.ts:506
gadgetCallCount
Section titled “gadgetCallCount”gadgetCallCount:
number
Defined in: agent/hooks.ts:512
Number of gadget calls in the current response
iteration
Section titled “iteration”iteration:
number
Defined in: agent/hooks.ts:502
logger
Section titled “logger”logger:
Logger<ILogObj>
Defined in: agent/hooks.ts:513
maxIterations
Section titled “maxIterations”maxIterations:
number
Defined in: agent/hooks.ts:504
Maximum iterations configured for the agent
options
Section titled “options”options:
Readonly<LLMGenerationOptions>
Defined in: agent/hooks.ts:505
usage?
Section titled “usage?”
optionalusage:TokenUsage
Defined in: agent/hooks.ts:508
Token usage including cached token counts when available