---
title: LanguageModelExecutorGenerationChannel.ToolCalls.Action
framework: foundationmodels
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct
---

# LanguageModelExecutorGenerationChannel.ToolCalls.Action

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

## Declaration

```swift
struct Action
```

## Overview

Overview Action is an enum-like struct; construct one with a leading-dot factory such as toolCall(id:name:action:).

## Topics

### Tool calling for action cases

- [removeToolCall(id:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct/removetoolcall(id:).md)

### Tool calling for action constants

- [toolCall(id:name:action:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct/toolcall(id:name:action:).md)
- [updateMetadata(_:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct/updatemetadata(_:).md)

### Type Methods

- [updateUsage(input:output:metadata:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.struct/updateusage(input:output:metadata:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling tool calls

- [action](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.property.md)
- [entryID](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/entryid.md)
- [LanguageModelExecutorGenerationChannel.ToolCalls.ToolCall](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/toolcall.md)
