AfterToolResultContext

data class AfterToolResultContext(val history: List<Message>, val iteration: Int, val toolCall: ToolCall, val result: Tool.Result, val resultAsString: String) : CallbackContext

Context provided after each tool execution in the tool loop.

Constructors

Link copied to clipboard
constructor(history: List<Message>, iteration: Int, toolCall: ToolCall, result: Tool.Result, resultAsString: String)

Properties

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

Current conversation history (before this result is added)

Link copied to clipboard
open override val iteration: Int

Current iteration number (1-based)

Link copied to clipboard

The typed tool result

Link copied to clipboard

String representation of the result

Link copied to clipboard

The tool call that was executed