SwiftenumIntelligenceFlow

enum IntelligenceFlow.SystemResponse.ResponseType

Structure

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

inherits{}

Members 8

  1. casecase acknowledgement(IntelligenceFlow.SystemResponse.ResponseType.Acknowledgement)
  2. casecase ask(IntelligenceFlow.SystemResponse.ResponseType.Ask)
  3. casecase confirm(IntelligenceFlow.SystemResponse.ResponseType.Confirm)
  4. casecase disambiguate(IntelligenceFlow.SystemResponse.ResponseType.Disambiguate)
  5. casecase inform(IntelligenceFlow.SystemResponse.ResponseType.Inform)
  6. casecase noDialog(IntelligenceFlow.SystemResponse.ResponseType.NoDialog)
  7. casecase notice(IntelligenceFlow.SystemResponse.ResponseType.Notice)
  8. casecase streamPiece(IntelligenceFlow.SystemResponse.ResponseType.StreamPiece)
enum IntelligenceFlow.SystemResponse.ResponseType {
    struct Dialog {
        struct ContentSegment {
            enum CodingKeys {
                case text
                case voiceId
                case languageCode
            }
            var text: Swift.String
            var voiceId: Swift.String?
            var languageCode: Swift.String?

            init(text: Swift.String, voiceId: Swift.String?, languageCode: Swift.String?)
        }
        enum CodingKeys {
            case content
            case printContent
            case contentSegments
        }
        var content: Swift.String
        var printContent: Swift.String
        var contentSegments: [IntelligenceFlow.SystemResponse.ResponseType.Dialog.ContentSegment]?

        init(content: Swift.String, printContent: Swift.String, contentSegments: [IntelligenceFlow.SystemResponse.ResponseType.Dialog.ContentSegment]?)
        init(content: Swift.String)
    }
    struct PrintSpeakDialog {
        enum CodingKeys {
            case printedDialog
            case spokenDialog
            case voiceId
            case voiceAttributes
            case languageCode
        }
        var printedDialog: Swift.String
        var spokenDialog: Swift.String
        var voiceId: Swift.String?
        var voiceAttributes: [IntelligenceFlow.VoiceAttribute]?
        var languageCode: Swift.String?

        init(printedDialog: Swift.String, spokenDialog: Swift.String, voiceId: Swift.String?, voiceAttributes: [IntelligenceFlow.VoiceAttribute]?, languageCode: Swift.String?)
    }
    enum DisplayItem {
        struct Value {
            enum CodingKeys {
                case typedValue
                case sourceToolId
                case sourceToolSchemaId
                case searchResultSource
                case searchResultMetadata
                case relatedPrecedingValue
                case groupId
                case openAction
            }
            var typedValue: ToolKit.TypedValue
            var sourceToolId: Swift.String?
            var sourceToolSchemaId: ToolKit.AssistantSchemaIdentifier?
            var searchResultSource: IntelligenceFlow.SearchResultSource?
            var searchResultMetadata: [Swift.String : Swift.String]
            var relatedPrecedingValue: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.RelatedPrecedingValue?
            var groupId: Swift.String?
            var openAction: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction?

            init(typedValue: ToolKit.TypedValue, sourceToolId: Swift.String?, sourceToolSchemaId: ToolKit.AssistantSchemaIdentifier?, searchResultSource: IntelligenceFlow.SearchResultSource?, searchResultMetadata: [Swift.String : Swift.String], relatedPrecedingValue: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.RelatedPrecedingValue?, groupId: Swift.String?, openAction: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction?)
            init(typedValue: ToolKit.TypedValue, sourceToolId: Swift.String?, sourceToolSchemaId: ToolKit.AssistantSchemaIdentifier?)
            init(typedValue: ToolKit.TypedValue, sourceToolId: Swift.String?)

            var description: Swift.String {
                get
            }
        }
        struct View {
            enum CodingKeys {
                case view
                case sourceValue
            }
            var view: IntelligenceFlow.ResponseVisual.UIType
            var sourceValue: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.Value?

            init(view: IntelligenceFlow.ResponseVisual.UIType, sourceValue: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.Value?)

            var description: Swift.String {
                get
            }
        }
        struct ShowMore {
            enum CodingKeys {
                case action
                case searchQuery
                case searchResultEntities
            }
            var action: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction
            var searchQuery: Swift.String
            var searchResultEntities: [ToolKit.TypedValue]

            init(action: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction, searchQuery: Swift.String, searchResultEntities: [ToolKit.TypedValue])
        }
        enum ShowMoreAction {
            struct LaunchAppAction {
                enum CodingKeys {
                    case label
                    case bundleId
                }
                var label: Swift.String
                var bundleId: Swift.String

                init(label: Swift.String, bundleId: Swift.String)
            }
            struct SearchInAppAction {
                enum CodingKeys {
                    case label
                    case toolId
                    case criteria
                }
                var label: Swift.String
                var toolId: Swift.String
                var criteria: Swift.String

                init(label: Swift.String, toolId: Swift.String, criteria: Swift.String)
            }
            struct OpenInAppAction {
                enum CodingKeys {
                    case label
                    case toolId
                }
                var label: Swift.String
                var toolId: Swift.String

                init(label: Swift.String, toolId: Swift.String)
            }
            enum CodingKeys {
                case launchApp
                case searchInApp
                case openInApp
            }
            enum LaunchAppCodingKeys {
                case _0
            }
            enum SearchInAppCodingKeys {
                case _0
            }
            enum OpenInAppCodingKeys {
                case _0
            }
            case launchApp(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction.LaunchAppAction)
            case searchInApp(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction.SearchInAppAction)
            case openInApp(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMoreAction.OpenInAppAction)
        }
        struct ResultCollection {
            struct GroupMetadata {
                enum CodingKeys {
                    case title
                    case image
                    case itemCount
                    case showMoreAction
                }
                var title: Swift.String
                var image: IntelligenceFlow.SystemResponse.Image?
                var itemCount: Swift.Int?
                var showMoreAction: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMore?

                init(title: Swift.String, image: IntelligenceFlow.SystemResponse.Image?, itemCount: Swift.Int?, showMoreAction: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMore?)
            }
            enum CodingKeys {
                case values
                case groupMetadata
            }
            var values: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.Value]
            var groupMetadata: [Swift.String : IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ResultCollection.GroupMetadata]

            init(values: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.Value], groupMetadata: [Swift.String : IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ResultCollection.GroupMetadata])
        }
        enum RelatedPrecedingValue {
            enum CodingKeys {
                case searchResultSummary
            }
            enum SearchResultSummaryCodingKeys {
                case _0
            }
            case searchResultSummary(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.SearchResultSummary)
        }
        struct SearchResultSummary {
            enum CodingKeys {}
            init()
        }
        enum CodingKeys {
            case value
            case view
            case suggestion
            case showMore
            case resultCollection
        }
        enum ValueCodingKeys {
            case _0
        }
        enum ViewCodingKeys {
            case _0
        }
        enum SuggestionCodingKeys {
            case _0
        }
        enum ShowMoreCodingKeys {
            case _0
        }
        enum ResultCollectionCodingKeys {
            case _0
        }
        case value(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.Value)
        case view(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.View)
        case suggestion(IntelligenceFlow.SystemResponse.FollowUpSuggestion)
        case showMore(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ShowMore)
        case resultCollection(IntelligenceFlow.SystemResponse.ResponseType.DisplayItem.ResultCollection)

        var description: Swift.String {
            get
        }
    }
    struct Ask {
        enum CodingKeys {
            case dialog
            case items
            case listenLonger
            case yesNo
        }
        var dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog
        var items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]
        var listenLonger: Swift.Bool
        var yesNo: Swift.Bool

        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem], listenLonger: Swift.Bool, yesNo: Swift.Bool)
        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem])
    }
    struct Confirm {
        enum CodingKeys {
            case dialog
            case items
            case affirmativeLabel
            case negativeLabel
            case isDestructiveAction
            case context
        }
        var dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog
        var items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]
        var affirmativeLabel: Swift.String
        var negativeLabel: Swift.String
        var isDestructiveAction: Swift.Bool
        var context: IntelligenceFlow.SystemResponse.ResponseType.ConfirmationContext?

        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem], affirmativeLabel: Swift.String, negativeLabel: Swift.String, isDestructiveAction: Swift.Bool, context: IntelligenceFlow.SystemResponse.ResponseType.ConfirmationContext?)
        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem], affirmativeLabel: Swift.String, negativeLabel: Swift.String, isDestructiveAction: Swift.Bool)
    }
    enum ConfirmationContext {
        enum CodingKeys {
            case actionConfirmation
            case parameterConfirmation
        }
        enum ActionConfirmationCodingKeys {
            case _0
        }
        enum ParameterConfirmationCodingKeys {
            case _0
        }
        case actionConfirmation(IntelligenceFlow.SystemResponse.ResponseType.ActionConfirmationContext)
        case parameterConfirmation(IntelligenceFlow.SystemResponse.ResponseType.ParameterConfirmationContext)
    }
    struct ActionConfirmationContext {
        enum CodingKeys {
            case parameterValues
            case toolId
            case toolSchemaId
        }
        var parameterValues: [Swift.String : IntelligenceFlow.ParameterValue]
        var toolId: Swift.String?
        var toolSchemaId: ToolKit.AssistantSchemaIdentifier?

        init(parameterValues: [Swift.String : IntelligenceFlow.ParameterValue], toolId: Swift.String?, toolSchemaId: ToolKit.AssistantSchemaIdentifier?)
    }
    struct ParameterConfirmationContext {
        enum CodingKeys {
            case parameterId
            case value
            case toolId
            case toolSchemaId
        }
        var parameterId: Swift.String
        var value: ToolKit.TypedValue
        var toolId: Swift.String?
        var toolSchemaId: ToolKit.AssistantSchemaIdentifier?

        init(parameterId: Swift.String, value: ToolKit.TypedValue, toolId: Swift.String?, toolSchemaId: ToolKit.AssistantSchemaIdentifier?)

        var description: Swift.String {
            get
        }
    }
    struct Disambiguate {
        enum CodingKeys {
            case dialog
            case items
        }
        var dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog
        var items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]

        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem])
    }
    struct Inform {
        enum CodingKeys {
            case dialog
            case items
            case handControlToUser
        }
        var dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog
        var items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]
        var handControlToUser: Swift.Bool

        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem], handControlToUser: Swift.Bool)
        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.Dialog, items: [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem])
    }
    enum StreamStage {
        struct StreamStageStart {
            enum CodingKeys {
                case snippet
            }
            var snippet: IntelligenceFlow.ResponseOutput.VisualOutput.PluginSnippetOutputPayload?

            init(snippet: IntelligenceFlow.ResponseOutput.VisualOutput.PluginSnippetOutputPayload?)
        }
        struct StreamSnippetOutputPayload {
            enum CodingKeys {
                case updateResponseCommand
                case viewId
            }
            var updateResponseCommand: Foundation.Data
            var viewId: Swift.String

            init(updateResponseCommand: Foundation.Data, viewId: Swift.String)
        }
        struct StreamStageStreaming {
            enum CodingKeys {
                case dialog
                case snippetOutput
                case entities
            }
            var dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?
            var snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?
            var entities: [Swift.String : [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]]

            init(dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?, snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?, entities: [Swift.String : [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]])
            init(dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?, snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?)
        }
        struct StreamingFollowupSuggestions {
            enum CodingKeys {
                case suggestions
            }
            var suggestions: [IntelligenceFlow.SystemResponse.FollowUpSuggestion]

            init(suggestions: [IntelligenceFlow.SystemResponse.FollowUpSuggestion])
        }
        struct StreamStageEnd {
            enum CodingKeys {
                case completeDialog
                case snippetOutput
                case endReason
                case endReasonMessage
                case attributionPayload
                case handControlToUser
                case streamingFollowupSuggestions
                case entities
            }
            var completeDialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?
            var snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?
            var endReason: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamEndReason
            var endReasonMessage: Swift.String?
            var attributionPayload: IntelligenceFlow.ResponseOutput.VisualOutput.PluginSnippetOutputPayload?
            var handControlToUser: Swift.Bool
            var streamingFollowupSuggestions: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamingFollowupSuggestions?
            var entities: [Swift.String : [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]]

            init(completeDialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?, snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?, endReason: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamEndReason, endReasonMessage: Swift.String?, attributionPayload: IntelligenceFlow.ResponseOutput.VisualOutput.PluginSnippetOutputPayload?, handControlToUser: Swift.Bool, streamingFollowupSuggestions: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamingFollowupSuggestions?, entities: [Swift.String : [IntelligenceFlow.SystemResponse.ResponseType.DisplayItem]])
            init(completeDialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?, snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?, endReason: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamEndReason, endReasonMessage: Swift.String?, attributionPayload: IntelligenceFlow.ResponseOutput.VisualOutput.PluginSnippetOutputPayload?, handControlToUser: Swift.Bool)
            init(completeDialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?, snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?, endReason: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamEndReason, endReasonMessage: Swift.String?, attributionPayload: IntelligenceFlow.ResponseOutput.VisualOutput.PluginSnippetOutputPayload?)
            init(completeDialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog?, snippetOutput: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamSnippetOutputPayload?, endReason: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamEndReason, endReasonMessage: Swift.String?)

            var followUpInfo: IntelligenceFlow.FollowUpInfo? {
                get
            }
        }
        enum StreamRetractionStrategy {
            enum CodingKeys {
                case replaceAll
            }
            enum ReplaceAllCodingKeys {
                case instruction
            }
            case replaceAll(instruction: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog)
        }
        enum StreamEndErrorReason {
            enum CodingKeys {
                case safetyViolation
            }
            enum SafetyViolationCodingKeys {
                case retractionStrategy
            }
            case safetyViolation(retractionStrategy: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamRetractionStrategy)
        }
        enum StreamEndReason {
            enum CodingKeys {
                case finished
                case cancelled
                case error
            }
            enum FinishedCodingKeys {}
            enum CancelledCodingKeys {}
            enum ErrorCodingKeys {
                case reason
            }
            case error(reason: IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamEndErrorReason?)
            case finished
            case cancelled
        }
        enum CodingKeys {
            case start
            case streaming
            case end
        }
        enum StartCodingKeys {
            case _0
        }
        enum StreamingCodingKeys {
            case _0
        }
        enum EndCodingKeys {
            case _0
        }
        case start(IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamStageStart)
        case streaming(IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamStageStreaming)
        case end(IntelligenceFlow.SystemResponse.ResponseType.StreamStage.StreamStageEnd)
    }
    struct StreamPiece {
        enum CodingKeys {
            case streamId
            case stage
        }
        var streamId: Swift.String
        var stage: IntelligenceFlow.SystemResponse.ResponseType.StreamStage

        init(streamId: Swift.String, stage: IntelligenceFlow.SystemResponse.ResponseType.StreamStage)
    }
    struct Notice {
        enum CodingKeys {
            case dialog
            case iconBundleId
            case item
        }
        var dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog
        var iconBundleId: Swift.String?
        var item: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem?

        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog, bundleId: Swift.String?, item: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem?)
    }
    struct Acknowledgement {
        enum CodingKeys {
            case dialog
            case iconBundleId
            case item
        }
        var dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog
        var iconBundleId: Swift.String?
        var item: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem?

        init(dialog: IntelligenceFlow.SystemResponse.ResponseType.PrintSpeakDialog, bundleId: Swift.String?, item: IntelligenceFlow.SystemResponse.ResponseType.DisplayItem?)
    }
    struct NoDialog {
        enum CodingKeys {}
        init()
    }
    enum CodingKeys {
        case ask
        case confirm
        case disambiguate
        case inform
        case streamPiece
        case notice
        case acknowledgement
        case noDialog
    }
    enum AskCodingKeys {
        case _0
    }
    enum ConfirmCodingKeys {
        case _0
    }
    enum DisambiguateCodingKeys {
        case _0
    }
    enum InformCodingKeys {
        case _0
    }
    enum StreamPieceCodingKeys {
        case _0
    }
    enum NoticeCodingKeys {
        case _0
    }
    enum AcknowledgementCodingKeys {
        case _0
    }
    enum NoDialogCodingKeys {
        case _0
    }
    case ask(IntelligenceFlow.SystemResponse.ResponseType.Ask)
    case confirm(IntelligenceFlow.SystemResponse.ResponseType.Confirm)
    case disambiguate(IntelligenceFlow.SystemResponse.ResponseType.Disambiguate)
    case inform(IntelligenceFlow.SystemResponse.ResponseType.Inform)
    case streamPiece(IntelligenceFlow.SystemResponse.ResponseType.StreamPiece)
    case notice(IntelligenceFlow.SystemResponse.ResponseType.Notice)
    case acknowledgement(IntelligenceFlow.SystemResponse.ResponseType.Acknowledgement)
    case noDialog(IntelligenceFlow.SystemResponse.ResponseType.NoDialog)
}