<!--
{
  "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/LanguageModelExecutor/respond(to:model:streamingInto:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels21LanguageModelExecutorP7respond2to5model13streamingIntoyAA0cdE17GenerationRequestV_0D0QzAA0cdeK7ChannelVtYaKF"
  },
  "title" : "respond(to:model:streamingInto:)"
}
-->

# respond(to:model:streamingInto:)

Creates a response stream containing deltas.

```
nonisolated(nonsending) func respond(to request: LanguageModelExecutorGenerationRequest, model: Self.Model, streamingInto channel: LanguageModelExecutorGenerationChannel) async throws
```

## Parameters

`request`

The generation request.

`model`

The model instance for this request, providing live model state.

`channel`

A channel used to send events.

## Discussion> Note: If the model declares that it does not have a given capability
> via ``doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModel/capabilities``, then the system will automatically
> throw an error instead
> of invoking this method. You do not need to manually validate the request
> for any functionality captured by ``doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelCapabilities``.

---

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)