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

# response(entryID:action:)

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

## Declaration

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

## See Also

### Handling the channel events

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