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

# reasoning(entryID:action:)

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

## Declaration

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

## See Also

### Handling the channel events

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