Contents

LanguageModelExecutorGenerationChannel.ToolCalls

A tool-call lifecycle event, including per-call argument streaming, reasoning, metadata, usage, or retraction.

Declaration

struct ToolCalls

Overview

Events for a specific tool call route through LanguageModelExecutorGenerationChannel.ToolCalls.Action.toolCall(_:). Use LanguageModelExecutorGenerationChannel.ToolCalls.Action.removeToolCall(id:) to drop a tool call the model retracted.

Topics

Handling tool calls

See Also

Accessing the event types