<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationChannelV9ToolCallsV"
  },
  "title" : "LanguageModelExecutorGenerationChannel.ToolCalls"
}
-->

# LanguageModelExecutorGenerationChannel.ToolCalls

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

```
struct ToolCalls
```

## Overview

Events for a specific tool call route through [`toolCall(id:name:action:)`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/Action-swift.struct/toolCall(id:name:action:)). Use
[`removeToolCall(id:)`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/Action-swift.struct/removeToolCall(id:)) to drop a tool call the model retracted.

## Topics

### Handling tool calls

[`var action: LanguageModelExecutorGenerationChannel.ToolCalls.Action`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/action-swift.property)

The action to perform.

[`struct Action`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/Action-swift.struct)

An operation that can be performed on a tool-calls entry.

[`var entryID: String?`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/entryID)

The identifier for the entry.

[`struct ToolCall`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/ToolCalls/ToolCall)

A per-tool-call event payload.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)