SwiftfuncFoundationModelsFoundationModels.LanguageModelSession
streamResponse
FoundationModels.LanguageModelSession.streamResponse<A where A: FoundationModels.Generable>(generating: A.Type, options: FoundationModels.GenerationOptions, contextOptions: FoundationModels.ContextOptions, metadata: [String : Decodable & Encodable & Equatable & Sendable], prompt: () throws -> FoundationModels.Prompt) throws -> FoundationModels.LanguageModelSession.ResponseStream<A>
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
generic{}
A
req{}
- conformance:genericParameter
AprotocolFoundationModels.Generable
param{}
- 0generating:metatype
A.Type- basegenericParameter
A
- 1options:
- 2contextOptions:
- 3metadata:structSwift.Dictionary
- argexistential
Decodable & Encodable & Equatable & Sendable
- 4prompt:function
() throws -> FoundationModels.Promptthrows
result{}
- arggenericParameter
A