BeforeLlmCallContext

data class BeforeLlmCallContext(val history: List<Message>, val iteration: Int, val tools: List<Tool>, val tokenEstimate: Int? = null) : CallbackContext

Context provided before each LLM call in the tool loop.

Constructors

Link copied to clipboard
constructor(history: List<Message>, iteration: Int, tools: List<Tool>, tokenEstimate: Int? = null)

Properties

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

Current conversation history (messages)

Link copied to clipboard
open override val iteration: Int

Current iteration number (1-based)

Link copied to clipboard
val tokenEstimate: Int? = null

Estimated token count for history, if available

Link copied to clipboard

Available tools for this call