AfterIterationContext

data class AfterIterationContext(val history: List<Message>, val iteration: Int, val toolCallsInIteration: List<ToolCall>) : CallbackContext

Context provided after each complete iteration in the tool loop. An iteration completes when all tool calls from a single LLM response have been processed.

Constructors

Link copied to clipboard
constructor(history: List<Message>, iteration: Int, toolCallsInIteration: List<ToolCall>)

Properties

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

Current conversation history (including all tool results from this iteration)

Link copied to clipboard
open override val iteration: Int

Current iteration number (1-based)

Link copied to clipboard

Tool calls that were processed in this iteration