BeforeToolCallContext

data class BeforeToolCallContext(val toolCall: ToolCall)

Context provided before tool execution.

Lightweight context without conversation history or iteration state. Used in both streaming and non-streaming modes.

In streaming mode, adapters preserve the provider-assigned tool-call ID when the provider supplies one. The same ID is passed to both callbacks so inspectors can correlate the execution without depending on a specific provider.

Constructors

Link copied to clipboard
constructor(toolCall: ToolCall)

Properties

Link copied to clipboard

The tool call about to be executed