SwiftstructContentKit
TextOrEntityOutput
struct ContentKit.TextOrEntityOutput
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolContentKit.WFModelResponse
- protocolSwift.Decodable
- protocolSwift.Encodable
Members 8
- func
static collect(AsyncThrowingStream<ContentKit.TextOrEntityOutput.Streaming, Error>) -> AsyncThrowingStream<ContentKit.TextOrEntityOutput, Error> - func
static constraint() -> String? - func
static promptTemplateSuffix() -> String - var
static var schema: GenerativeFunctionsFoundation.Schema { get } - field
let responseType: ContentKit.TextOrEntityOutput.ResponseType+0x0 - field
let text: String+0x8 - field
let uuidList: [String]+0x18 - init
init(responseType: ContentKit.TextOrEntityOutput.ResponseType, text: String, uuidList: [String]) -> ContentKit.TextOrEntityOutput
Header
struct TextOrEntityOutput { enum ResponseType { struct Streaming { let _value: Swift.AsyncThrowingStream<ContentKit.TextOrEntityOutput.ResponseType, any Swift.Error> init(objectID: Foundation.UUID, decoder: any GenerativeFunctionsFoundation._StreamingDecoder) async throws var value: GenerativeFunctions.StreamSignal<ContentKit.TextOrEntityOutput.ResponseType> { get } } case text case entityList static func collect(_: Swift.AsyncThrowingStream<ContentKit.TextOrEntityOutput.ResponseType.Streaming, any Swift.Error>) -> Swift.AsyncThrowingStream<ContentKit.TextOrEntityOutput.ResponseType, any Swift.Error> } struct Streaming { let _responseType: Swift.AsyncThrowingStream<ContentKit.TextOrEntityOutput.ResponseType, any Swift.Error> let _text: Swift.AsyncThrowingStream<Swift.String, any Swift.Error> let uuidList: Swift.AsyncThrowingStream<Swift.String, any Swift.Error> init(objectID: Foundation.UUID, decoder: any GenerativeFunctionsFoundation._StreamingDecoder) async throws var responseType: GenerativeFunctions.StreamSignal<ContentKit.TextOrEntityOutput.ResponseType> { get } var text: GenerativeFunctions.StreamSignal<Swift.String> { get } } enum CodingKeys { case responseType case text case uuidList } let responseType: ContentKit.TextOrEntityOutput.ResponseType let text: Swift.String let uuidList: [Swift.String] init(responseType: ContentKit.TextOrEntityOutput.ResponseType, text: Swift.String, uuidList: [Swift.String]) static var schema: GenerativeFunctionsFoundation.Schema { get } static func constraint() -> Swift.String? static func promptTemplateSuffix() -> Swift.String static func collect(_: Swift.AsyncThrowingStream<ContentKit.TextOrEntityOutput.Streaming, any Swift.Error>) -> Swift.AsyncThrowingStream<ContentKit.TextOrEntityOutput, any Swift.Error> }