<!--
{
  "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/Response",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels38LanguageModelExecutorGenerationChannelV8ResponseV"
  },
  "title" : "LanguageModelExecutorGenerationChannel.Response"
}
-->

# LanguageModelExecutorGenerationChannel.Response

A model-generated response event: text, segment replacements, citations,
advisories, custom segments, metadata, or usage.

```
struct Response
```

## Topics

### Handling a response

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

The action to perform.

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

An operation that can be performed on a response entry.

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

The identifier for the entry.

[`struct TextSegmentReplacement`](/documentation/FoundationModels/LanguageModelExecutorGenerationChannel/TextSegmentReplacement)

A replacement for a streaming entry’s current text segment.

## 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)