ToolOutcome

data class ToolOutcome(val call: LlmToolCall, val result: String? = null, val error: Throwable? = null, val duration: Duration)

The outcome of executing a single tool call.

Constructors

Link copied to clipboard
constructor(call: LlmToolCall, result: String? = null, error: Throwable? = null, duration: Duration)

Properties

Link copied to clipboard

The tool call as the LLM requested it.

Link copied to clipboard

Wall-clock duration of the tool call.

Link copied to clipboard

Failure cause, when execution did not succeed.

Link copied to clipboard
Link copied to clipboard

Serialised tool result (already JSON-encoded by the tool).