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.

Note: In streaming mode (Spring AI), toolCall.id is a generated UUID because the underlying framework does not expose LLM-assigned call IDs during tool execution. The ID is unique per call and can be used to correlate before/after events for the same tool execution.

Constructors

Link copied to clipboard
constructor(toolCall: ToolCall)

Properties

Link copied to clipboard

The tool call about to be executed