SwiftextensionGenerativeFunctions
CompletionLanguageModelProvidingStreamable
extension GenerativeFunctionsFoundation.CompletionLanguageModelProvidingStreamable
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
Members 3
- func
streamCompletion<A where A.CompletionStringStreamParameters == A1?>(of: () throws -> PromptKit.Prompt) async throws -> A.CompletionStringStreamResponse - func
streamCompletion<A where A.CompletionStringStreamParameters == A1?>(of: PromptKit.CompletionPrompt) async throws -> A.CompletionStringStreamResponse - func
streamCompletion(of: () throws -> PromptKit.Prompt, parameters: () throws -> A.CompletionStringStreamParameters) async throws -> A.CompletionStringStreamResponse
Header
extension GenerativeFunctionsFoundation.CompletionLanguageModelProvidingStreamable { func streamCompletion<A1>(of: () throws -> PromptKit.Prompt) async throws -> Self.CompletionStringStreamResponse where Self.CompletionStringStreamParameters == A1? func streamCompletion<A1>(of: PromptKit.CompletionPrompt) async throws -> Self.CompletionStringStreamResponse where Self.CompletionStringStreamParameters == A1? func streamCompletion(of: () throws -> PromptKit.Prompt, parameters: () throws -> Self.CompletionStringStreamParameters) async throws -> Self.CompletionStringStreamResponse }