AfterLlmCallContext

data class AfterLlmCallContext(val history: List<Message>, val iteration: Int, val response: Message, val usage: Usage?) : CallbackContext

Context provided after LLM returns a response, before tool calls are processed.

Constructors

Link copied to clipboard
constructor(history: List<Message>, iteration: Int, response: Message, usage: Usage?)

Properties

Link copied to clipboard
open override val history: List<Message>

Current conversation history (before response is added)

Link copied to clipboard
open override val iteration: Int

Current iteration number (1-based)

Link copied to clipboard

The LLM response (may be AssistantMessage or AssistantMessageWithToolCalls)

Link copied to clipboard
val usage: Usage?

Token usage for this LLM call, if available