ToolResultContext

Common interface for tool result context, shared between streaming and non-streaming callbacks.

Provides access to the tool call details and result without loop-specific context (history, iteration) that is only available in non-streaming mode.

Inheritors

Properties

Link copied to clipboard
abstract val result: Tool.Result

The typed tool result (may be Tool.Result.Error on failure)

Link copied to clipboard
abstract val resultAsString: String

String representation of the result

Link copied to clipboard
abstract val toolCall: ToolCall

The tool call that was executed