SwiftstructIntelligencePlatformLibrary

struct IntelligencePlatformLibrary.ResponseGeneration.Event.Generation

Structure

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

Members 2

  1. fieldvar stateInfo: IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.StateInfo?
  2. initinit() -> IntelligencePlatformLibrary.ResponseGeneration.Event.Generation
struct IntelligencePlatformLibrary.ResponseGeneration.Event.Generation {
    struct Started {
        var existing: Swift.Bool?

        init()
    }
    struct Ended {
        enum Source {
            case unknown(Swift.Int)
            case tool
            case fallback
            case override
            case clientCache
            case responseCatalog
            case nlgModel

            init?(_: Swift.String)

            var description: Swift.String {
                get
            }
        }
        enum FallbackReason {
            case unknown(Swift.Int)
            case notAdoptingNLGAPI
            case notInAllowList
            case deniedRequest
            case guardrailDetectedHallucination
            case modelDetectedHallucination
            case overridden
            case modelServerTimeout
            case modelServerError
            case detectedSafetyIssue

            init?(_: Swift.String)

            var description: Swift.String {
                get
            }
        }
        var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?
        var source: IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.Ended.Source?
        var characterCount: Swift.UInt32?
        var wordCount: Swift.UInt32?
        var fallbackReason: IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.Ended.FallbackReason?
        var displayString: Swift.String?
        var spokenString: Swift.String?
        var catId: Swift.String?
        var staticDialogId: Swift.String?
        var transcriptEventId: Foundation.UUID?

        init()
    }
    struct Failed {
        var criticalError: IntelligencePlatformLibrary.IntelligenceFlowError?

        init()
    }
    enum StateInfo {
        case started(IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.Started)
        case ended(IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.Ended)
        case failed(IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.Failed)
    }
    var stateInfo: IntelligencePlatformLibrary.ResponseGeneration.Event.Generation.StateInfo?

    init()
}