SwiftstructContentKit

struct ContentKit.TextOrEntityOutput

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 8

  1. funcstatic collect(AsyncThrowingStream<ContentKit.TextOrEntityOutput.Streaming, Error>) -> AsyncThrowingStream<ContentKit.TextOrEntityOutput, Error>
  2. funcstatic constraint() -> String?
  3. funcstatic promptTemplateSuffix() -> String
  4. varstatic var schema: GenerativeFunctionsFoundation.Schema { get }
  5. fieldlet responseType: ContentKit.TextOrEntityOutput.ResponseType+0x0
  6. fieldlet text: String+0x8
  7. fieldlet uuidList: [String]+0x18
  8. initinit(responseType: ContentKit.TextOrEntityOutput.ResponseType, text: String, uuidList: [String]) -> ContentKit.TextOrEntityOutput
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>
}