SwiftextensionGenerativeFunctions
GenerativeStream
extension GenerativeFunctionsFoundation.GenerativeStream
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
extends{}
Members 4
- func
static makeSingleElementStream(_: AsyncThrowingStream<String, Error>, timeout: Double?, produces: A.Type, sanitizer: GenerativeFunctions._StreamSanitizer?) async throws -> A - func
static makeSingleElementStream(_: AsyncThrowingStream<String, Error>, produces: A.Type) async throws -> A - func
static makeStream(_: AsyncThrowingStream<String, Error>, timeout: Double?, sanitizer: GenerativeFunctions._StreamSanitizer?) async throws -> GenerativeFunctionsFoundation.GenerativeStream<A> - func
static makeStream(AsyncThrowingStream<String, Error>) async throws -> GenerativeFunctionsFoundation.GenerativeStream<A>
Header
extension GenerativeFunctionsFoundation.GenerativeStream { static func makeSingleElementStream(_: Swift.AsyncThrowingStream<Swift.String, any Swift.Error>, timeout: Swift.Double?, produces: A.Type, sanitizer: (any GenerativeFunctions._StreamSanitizer)?) async throws -> A static func makeSingleElementStream(_: Swift.AsyncThrowingStream<Swift.String, any Swift.Error>, produces: A.Type) async throws -> A static func makeStream(_: Swift.AsyncThrowingStream<Swift.String, any Swift.Error>, timeout: Swift.Double?, sanitizer: (any GenerativeFunctions._StreamSanitizer)?) async throws -> GenerativeFunctionsFoundation.GenerativeStream<A> static func makeStream(_: Swift.AsyncThrowingStream<Swift.String, any Swift.Error>) async throws -> GenerativeFunctionsFoundation.GenerativeStream<A> }