Skip to content

AfterLLMCallControllerContext

Defined in: agent/hooks.ts:501

Context for after LLM call controller.

finalMessage: string

Defined in: agent/hooks.ts:510

The final message (after interceptors) that will be added to history


finishReason: string | null

Defined in: agent/hooks.ts:506


gadgetCallCount: number

Defined in: agent/hooks.ts:512

Number of gadget calls in the current response


iteration: number

Defined in: agent/hooks.ts:502


logger: Logger<ILogObj>

Defined in: agent/hooks.ts:513


maxIterations: number

Defined in: agent/hooks.ts:504

Maximum iterations configured for the agent


options: Readonly<LLMGenerationOptions>

Defined in: agent/hooks.ts:505


optional usage: TokenUsage

Defined in: agent/hooks.ts:508

Token usage including cached token counts when available