---
title: "toolCalls(entryID:action:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
path: "foundationmodels/languagemodelexecutorgenerationchannel/event/toolcalls(entryid:action:)"
---

# toolCalls(entryID:action:)

Constructs a LanguageModelExecutorGenerationChannel.ToolCalls event for use at channel.send(.toolCalls(entryID:action:)) call sites.

## Declaration

```swift
static func toolCalls(entryID: String? = nil, action: LanguageModelExecutorGenerationChannel.ToolCalls.Action) -> Self
```

## See Also

### Handling the channel events

- [response(entryID:action:)](foundationmodels/languagemodelexecutorgenerationchannel/event/response(entryid:action:).md)
- [reasoning(entryID:action:)](foundationmodels/languagemodelexecutorgenerationchannel/event/reasoning(entryid:action:).md)
