SwiftstructIntelligencePlatformLibrary

struct IntelligencePlatformLibrary.ResponseGeneration.Event

Structure

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

Members 2

  1. fieldvar eventType: IntelligencePlatformLibrary.ResponseGeneration.Event.EventType?
  2. initinit() -> IntelligencePlatformLibrary.ResponseGeneration.Event
struct IntelligencePlatformLibrary.ResponseGeneration.Event {
    struct 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()
    }
    struct RequestValidation {
        struct Started {
            var assetVersion: Swift.String?

            init()
        }
        struct Ended {
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?

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

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

        init()
    }
    struct Override {
        struct Started {
            var assetVersion: Swift.String?

            init()
        }
        struct Ended {
            enum OverrideType {
                case unknown(Swift.Int)
                case fallbackDialog
                case stringDialog
                case catDialog

                init?(_: Swift.String)

                var description: Swift.String {
                    get
                }
            }
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?
            var type: IntelligencePlatformLibrary.ResponseGeneration.Event.Override.Ended.OverrideType?
            var id: Swift.String?

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

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

        init()
    }
    struct ResponseCatalog {
        struct Started {
            var assetVersion: Swift.String?

            init()
        }
        struct Ended {
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?

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

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

        init()
    }
    struct ModelInference {
        struct Started {
            var modelVersion: Swift.String?
            var promptVersion: Swift.String?

            init()
        }
        struct Ended {
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?

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

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

        init()
    }
    struct HallucinationDetection {
        struct Started {
            var assetVersion: Swift.String?

            init()
        }
        struct Ended {
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?

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

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

        init()
    }
    struct CacheManagerCall {
        struct Started {
            var existing: Swift.Bool

            init()
        }
        struct Ended {
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?

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

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

        init()
    }
    struct GMSCall {
        struct Started {
            var existing: Swift.Bool

            init()
        }
        struct Ended {
            var handledError: IntelligencePlatformLibrary.IntelligenceFlowError?

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

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

        init()
    }
    enum EventType {
        case generation(IntelligencePlatformLibrary.ResponseGeneration.Event.Generation)
        case requestValidation(IntelligencePlatformLibrary.ResponseGeneration.Event.RequestValidation)
        case override(IntelligencePlatformLibrary.ResponseGeneration.Event.Override)
        case responseCatalog(IntelligencePlatformLibrary.ResponseGeneration.Event.ResponseCatalog)
        case modelInference(IntelligencePlatformLibrary.ResponseGeneration.Event.ModelInference)
        case hallucinationDetection(IntelligencePlatformLibrary.ResponseGeneration.Event.HallucinationDetection)
        case cacheManagerCall(IntelligencePlatformLibrary.ResponseGeneration.Event.CacheManagerCall)
        case gmsCall(IntelligencePlatformLibrary.ResponseGeneration.Event.GMSCall)
    }
    var eventType: IntelligencePlatformLibrary.ResponseGeneration.Event.EventType?

    init()
}