SwiftenumIntelligenceFlowPlannerSupport
enum IntelligenceFlowPlannerSupport.Session
Header
enum Session { enum RuntimeKind { case standalone case companion } struct InstrumentableEvent { enum CodingKeys { case eventProtoBinaryData case description } let event: IntelligenceFlowPlannerSupport.Session.Event let description: Swift.String let sourceProto: IntelligenceFlowProto.TranscriptProtoEvent? init(event: IntelligenceFlowPlannerSupport.Session.Event, description: Swift.String) } struct SessionResumptionEventBundle { enum CodingKeys { case events } let events: [Foundation.Data] init(events: [Foundation.Data]) } struct SessionEnded { enum CodingKeys { case sessionId } let sessionId: Foundation.UUID init(sessionId: Foundation.UUID) } struct SessionIdentityToken { let untrustedAuditToken: ProactiveDaemonSupport.AuditToken? let identityToken: ProactiveDaemonSupport.MachIdentityToken? init(untrustedAuditToken: ProactiveDaemonSupport.AuditToken?, identityToken: ProactiveDaemonSupport.MachIdentityToken?) var callingProcessID: Swift.Int? { get } var untrustedPid: Swift.Int32? { get } } class SafetyState { let state: Synchronization.Mutex<AgentSessionKit.AgentSession.SafetyState> init(_: AgentSessionKit.AgentSession.SafetyState) final var current: AgentSessionKit.AgentSession.SafetyState { get } final var isLocked: Swift.Bool { get } final func markSensitive() final func updateLockout(_: (_: inout AgentSessionKit.AgentSession.SafetyState.LockoutCounts) -> ()) final func lock(reason: AgentSessionKit.AgentSession.SafetyState.Reason) final func hydrate(from: AgentSessionKit.AgentSession.SafetyState) deinit } struct SessionState { enum SessionStateError { case noSessionStartEvent case nilQueryEventIdInRequest } var transcript: IntelligenceFlowPlannerSupport.Session.Transcript var sessionSpanContext: IntelligenceFlowShared.ServiceContext? let statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter let lifecycleState: IntelligenceFlowPlannerSupport.Session.LifecycleState let safetyState: IntelligenceFlowPlannerSupport.Session.SafetyState init(transcript: IntelligenceFlowPlannerSupport.Session.Transcript, statementIdCounter: IntelligenceFlowPlannerSupport.Session.StatementIdCounter, lifecycleState: IntelligenceFlowPlannerSupport.Session.LifecycleState, safetyState: IntelligenceFlowPlannerSupport.Session.SafetyState?) init(transcript: IntelligenceFlowPlannerSupport.Session.Transcript) init?(events: [IntelligenceFlowPlannerSupport.Session.Event]) func latestSessionStart() throws -> IntelligenceFlowPlannerSupport.SessionStart func retrieveSessionStart() throws -> IntelligenceFlowPlannerSupport.SessionStart func isLongformInput(userTurnId: Foundation.UUID) -> Swift.Bool } class StatementIdCounter { let atomic: Synchronization.Atomic<Swift.UInt32> init(baseStatementIdIndex: Swift.UInt32) init(copying: IntelligenceFlowPlannerSupport.Session.StatementIdCounter) final var currentValue: Swift.UInt32 { get } final func newStatementId() -> IntelligenceFlow.StatementID final func newStatementIdIndex() -> Swift.UInt32 final func advance(to: Swift.UInt32) deinit } class LifecycleState { enum Value { case active case pendingTermination case terminated } let state: Synchronization.Mutex<IntelligenceFlowPlannerSupport.Session.LifecycleState.Value> init(_: IntelligenceFlowPlannerSupport.Session.LifecycleState.Value) final var value: IntelligenceFlowPlannerSupport.Session.LifecycleState.Value { get } final func transition(to: IntelligenceFlowPlannerSupport.Session.LifecycleState.Value) deinit } struct StatusUpdateEvent { enum Payload { enum CodingKeys { case executionProgressUpdate case intermediateQueryResult case snippetStreamUpdate case internalDiagnostics case attributedRequestExecutionUpdate case visualCaptureContext case mediaTokenRefreshRequested } enum ExecutionProgressUpdateCodingKeys { case _0 } enum IntermediateQueryResultCodingKeys { case _0 } enum SnippetStreamUpdateCodingKeys { case _0 } enum InternalDiagnosticsCodingKeys { case _0 } enum AttributedRequestExecutionUpdateCodingKeys { case _0 } enum VisualCaptureContextCodingKeys { case _0 } enum MediaTokenRefreshRequestedCodingKeys { case _0 } case executionProgressUpdate(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ToolExecutionProgressUpdate) case intermediateQueryResult(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.IntermediateQueryResult) case snippetStreamUpdate(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.SnippetStreamUpdate) case internalDiagnostics(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.InternalDiagnostics) case attributedRequestExecutionUpdate(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate) case visualCaptureContext(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.VisualCaptureContext) case mediaTokenRefreshRequested(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.MediaTokenRefreshRequested) init?(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.Payload) } struct MediaTokenRefreshRequested { enum CodingKeys {} init() } struct ApplicationIdentity { enum CodingKeys { case applicationIdentifier } let applicationIdentifier: Swift.String init(applicationIdentifier: Swift.String) } struct VisualCaptureContext { enum CodingKeys { case data } let data: [Swift.String : Foundation.Data] let surfaces: [Swift.String : __C.IOSurface] init(data: [Swift.String : Foundation.Data], surfaces: [Swift.String : __C.IOSurface]) } struct ToolExecutionProgressUpdate { enum SourceIdentity { enum CodingKeys { case tool case agent case structuredAgent } enum ToolCodingKeys { case _0 } enum AgentCodingKeys { case _0 } enum StructuredAgentCodingKeys { case _0 } case tool(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ApplicationIdentity) case agent(IntelligenceFlow.AgentID) case structuredAgent(IntelligenceFlow.StructuredAgentID) } enum CodingKeys { case progress case progressDescription case additionalProgressDescription case source case prefersVisualProgressIndicator } let progress: Swift.Float let progressDescription: Swift.String? let additionalProgressDescription: Swift.String? let source: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ToolExecutionProgressUpdate.SourceIdentity? let prefersVisualProgressIndicator: Swift.Bool? init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.ToolExecutionProgressUpdate) init(progress: Swift.Float, progressDescription: Swift.String?, additionalProgressDescription: Swift.String?, source: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ToolExecutionProgressUpdate.SourceIdentity?, prefersVisualProgressIndicator: Swift.Bool) init(progress: Swift.Float, progressDescription: Swift.String?, additionalProgressDescription: Swift.String?) } struct IntermediateQueryResult { enum Source { struct AppEntityStringQuery { struct ActionContext { enum CodingKeys { case toolId case parameterId } var toolId: Swift.String var parameterId: Swift.String init(toolId: Swift.String, parameterId: Swift.String) } enum CodingKeys { case associatedActionContext } var associatedActionContext: IntelligenceFlowPlannerSupport.ActionParameterContext init(associatedActionContext: IntelligenceFlowPlannerSupport.ActionParameterContext) } struct OmniSearchQuery { enum CodingKeys {} init() } enum CodingKeys { case omniSearch case appEntityStringQuery } enum OmniSearchCodingKeys { case _0 } enum AppEntityStringQueryCodingKeys { case _0 } case omniSearch(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.IntermediateQueryResult.Source.OmniSearchQuery) case appEntityStringQuery(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.IntermediateQueryResult.Source.AppEntityStringQuery) } enum CodingKeys { case query case source case results } var query: Swift.String var source: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.IntermediateQueryResult.Source var results: [ToolKit.TypedValue] init(query: Swift.String, source: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.IntermediateQueryResult.Source, results: [ToolKit.TypedValue]) } struct SnippetStreamUpdate { enum CodingKeys { case toolId case data } var toolId: Swift.String var data: Foundation.Data init(toolId: Swift.String, data: Foundation.Data) } struct InternalDiagnostics { enum CodingKeys { case content } var content: Swift.String init(content: Swift.String) } struct AttributedRequestExecutionUpdate { enum AttributedRequestExecutionUpdateType { enum CodingKeys { case toolUpdate case activity case directive } enum ToolUpdateCodingKeys { case _0 } enum ActivityCodingKeys { case _0 } enum DirectiveCodingKeys { case _0 } case toolUpdate(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ToolExecutionProgressUpdate) case activity([IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ActivityRepresentationType]) case directive(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ExecutionUpdateDirective) init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.AttributedRequestExecutionUpdateType) } struct ActivityExecutionStatistic { enum CodingKeys { case startTimestamp case predictedDuration case predictionConfidence case shouldPresentActivityStatus case didEnd } var startTimestamp: Foundation.Date var predictedDuration: Swift.Double? var predictionConfidence: Swift.Double? var shouldPresentActivityStatus: Swift.Bool var didEnd: Swift.Bool init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.ActivityExecutionStatistic) init(startTimestamp: Foundation.Date) } enum ActivityRepresentationType { struct ActionRepresentation { struct Schema { enum CodingKeys { case kind case domain } let kind: Swift.String let domain: Swift.String init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.ActivityRepresentationType.ActionRepresentation.Schema) init(kind: Swift.String, domain: Swift.String) } enum CodingKeys { case toolID case application case schema case executionStatistic case mayStartLiveActivity } let toolID: Swift.String let application: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ApplicationIdentity let schema: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ActivityRepresentationType.ActionRepresentation.Schema var executionStatistic: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ActivityExecutionStatistic? let mayStartLiveActivity: Swift.Bool? init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.ActivityRepresentationType.ActionRepresentation) init(toolID: Swift.String, application: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.ApplicationIdentity, schema: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ActivityRepresentationType.ActionRepresentation.Schema, mayStartLiveActivity: Swift.Bool?) } enum CodingKeys { case userTurn case thinking case action case systemTurn } enum UserTurnCodingKeys { case _0 } enum ThinkingCodingKeys { case _0 } enum ActionCodingKeys { case _0 } enum SystemTurnCodingKeys { case _0 } case userTurn(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.UserTurnContext) case thinking(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ThinkingContext) case action(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ActivityRepresentationType.ActionRepresentation) case systemTurn(IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.SystemTurnContext) init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.ActivityRepresentationType) } struct UserTurnContext { struct UserInteractionContext { enum CodingKeys {} init() } enum CodingKeys { case userTurnIdentifier case isActivated case didEnd case introducesUserTurn case userTurnType } var userTurnIdentifier: Foundation.UUID? var isActivated: Swift.Bool? var didEnd: Swift.Bool? var introducesUserTurn: Swift.Bool? var userTurnType: IntelligenceFlowPlannerSupport.UserTurn? init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.UserTurnContext) init() } struct ThinkingContext { enum CodingKeys { case agentID case userQueryEnhancementContext case executionStatistic } var agentID: IntelligenceFlow.AgentID? var userQueryEnhancementContext: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.UserQueryEnhancementContext? var executionStatistic: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.ActivityExecutionStatistic? init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.ThinkingContext) init(agentID: IntelligenceFlow.AgentID?, userQueryEnhancementContext: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.UserQueryEnhancementContext?) } struct SystemTurnContext { enum CodingKeys { case expectedUIDismissal } var expectedUIDismissal: Swift.Bool init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.SystemTurnContext) init(expectedUIDismissal: Swift.Bool) } struct UserQueryEnhancementContext { enum CodingKeys { case rewrittenQuery } var rewrittenQuery: Swift.String? init(rewrittenQuery: Swift.String?) } enum ExecutionUpdateDirective { enum CodingKeys { case associateNextExecutionUpdateWithCurrentRequest } enum AssociateNextExecutionUpdateWithCurrentRequestCodingKeys {} case associateNextExecutionUpdateWithCurrentRequest init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.ExecutionUpdateDirective) } struct RequestProgress { enum CodingKeys { case currentRequestPhaseStartingProgress case currentRequestPhaseEndingProgress case currentRequestPhaseProgress case currentRequestPhaseEstimatedEndTimestamp } let currentRequestPhaseStartingProgress: Swift.Float let currentRequestPhaseEndingProgress: Swift.Float let currentRequestPhaseProgress: Swift.Float? let currentRequestPhaseEstimatedEndTimestamp: Foundation.Date? init(currentRequestPhaseStartingProgress: Swift.Float, currentRequestPhaseEndingProgress: Swift.Float, currentRequestPhaseProgress: Swift.Float?, currentRequestPhaseEstimatedEndTimestamp: Foundation.Date?) init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate.RequestProgress) } enum CodingKeys { case update case requestProgress } let update: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.AttributedRequestExecutionUpdateType let requestProgress: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.RequestProgress? init(sessionStatusUpdate: IntelligenceFlow.SessionStatusUpdate.AttributedRequestExecutionUpdate) init(update: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.AttributedRequestExecutionUpdateType, requestProgress: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.AttributedRequestExecutionUpdate.RequestProgress?) } enum CodingKeys { case id case sessionId case queryEventId case userTurnId case clientRequestId case clientSessionId case clientApplicationId case clientGroupId case timepoint case sender case postingSpan case payload } var id: Foundation.UUID var sessionId: Foundation.UUID var queryEventId: Foundation.UUID? var userTurnId: Foundation.UUID? var clientRequestId: Swift.String var clientSessionId: Swift.String var clientApplicationId: Swift.String var clientGroupId: Swift.String? var timepoint: IntelligenceFlowPlannerSupport.Timepoint var sender: IntelligenceFlowPlannerSupport.ParticipantID? var postingSpan: IntelligenceFlowPlannerSupport.SpanID? var payload: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.Payload } struct Transcript { enum CodingKeys { case sessionId case clientSessionId case clientApplicationId case clientGroupId case retrievedEvents case events } let sessionId: Foundation.UUID let clientSessionId: Swift.String let clientApplicationId: Swift.String let clientGroupId: Swift.String? var retrievedEvents: [IntelligenceFlowPlannerSupport.Session.Event] var events: IntelligenceFlowPlannerSupport.AppendOnlyEventLog init(transcript: IntelligenceFlowProto.TranscriptProtoTranscript) throws init?(retrievedEvents: [IntelligenceFlowPlannerSupport.Session.Event], events: [IntelligenceFlowPlannerSupport.Session.Event]) init(sessionId: Foundation.UUID, clientSessionId: Swift.String, clientApplicationId: Swift.String, clientGroupId: Swift.String?, retrievedEvents: [IntelligenceFlowPlannerSupport.Session.Event], events: [IntelligenceFlowPlannerSupport.Session.Event]) init(sessionId: Foundation.UUID, clientSessionId: Swift.String, clientApplicationId: Swift.String, clientGroupId: Swift.String?, retrievedEvents: [IntelligenceFlowPlannerSupport.Session.Event]) var allEvents: [IntelligenceFlowPlannerSupport.Session.Event] { get } var evaluationTranscript: IntelligenceFlow.EvaluationTranscript { get } func replaceEvents(_: [IntelligenceFlowPlannerSupport.Session.Event]) func formingTraceIds() -> IntelligencePlatformLibrary.IntelligenceFlowIdentifiers func formingQueryEvent(clientRequestId: Swift.String, userTurnId: Foundation.UUID?, _: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func formingQueryEvent(id: consuming IntelligenceFlowPlannerSupport.PreassignedEventID, userTurnId: Foundation.UUID?, clientRequestId: Swift.String, _: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func formingUserTurnEvent(clientRequestId: Swift.String, payload: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func formingQuerylessEvent(clientRequestId: Swift.String, userTurnId: Foundation.UUID?, _: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func formingQuerylessEvent(id: consuming IntelligenceFlowPlannerSupport.PreassignedEventID, userTurnId: Foundation.UUID?, clientRequestId: Swift.String, _: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func hasResponseForRequest(_: Foundation.UUID) -> Swift.Bool func getSummarizationRequest(forResponseRequestEventId: Foundation.UUID) -> IntelligenceFlowPlannerSupport.SessionSummarizationRequest? func isSummarizationInflight() -> Swift.Bool func conversationFragmentMapping() -> IntelligenceFlowPlannerSupport.ConversationFragmentMapping func formingOriginatingEventForTesting(id: consuming IntelligenceFlowPlannerSupport.PreassignedEventID, _: IntelligenceFlowPlannerSupport.Session.Event.Payload, clientRequestId: Swift.String, sender: IntelligenceFlowPlannerSupport.ParticipantID) -> IntelligenceFlowPlannerSupport.Session.Event func formingOriginatingEventForTesting(_: IntelligenceFlowPlannerSupport.Session.Event.Payload, clientRequestId: Swift.String, sender: IntelligenceFlowPlannerSupport.ParticipantID) -> IntelligenceFlowPlannerSupport.Session.Event func hasOtherInflightSummarizationRequest(besides: Foundation.UUID) -> Swift.Bool func getInflightSummarizationRequestEventIds() -> [Foundation.UUID] func append<A>(contentsOf: A) where A: Swift.Sequence, A.Element == IntelligenceFlowPlannerSupport.Session.Event func append(event: IntelligenceFlowPlannerSupport.Session.Event) } struct Event { enum Payload { enum QueryTrackingBehavior { enum CodingKeys { case standard case query case advisory case advisoryWorkAllowing } enum StandardCodingKeys {} enum QueryCodingKeys {} enum AdvisoryCodingKeys {} enum AdvisoryWorkAllowingCodingKeys {} case standard case query case advisory case advisoryWorkAllowing } enum CodingKeys { case sessionStart case sessionEnd case userTurnStarted case userTurnEnded case userTurnFinalized case speechReadyForNewUserTurn case siriActivationRequested case siriActivated case speechPartialResult case speechFinalResult case request case planCreated case actionCreated case actionCanceled case clientActionCreated case queriesCreated case variablesSet case recoverableError case criticalError case endOfPlan case systemTurnEnded case terminate case queriesExecuted case actionResolverRequestCreated case responseGenerationRequestCreated case contextRetrieved case toolsRetrieved case entitySpanMatched case systemResponseGenerated case systemResponseRendered case statementEvaluated case externalAgentRequest case externalAgentOutcome case externalAgentRequestRewriteMetadata case toolResolution case undoRedoRequest case clientUndoRedoRequest case typeConversionRequest case typeConversionResult case queryDecorationResult case continuePlanning case queryDecorationPrePlannerResult case skipStatement case executionPreconditionEvaluatorRequest case requestAmendment case toolRetrievalRequest case contextRetrievalRequest case spanMatchRequest case intermediateSystemResponse case intermediateSystemResponseRendered case agentPrimitiveAction case executorGateResult case speechDetectionUpdate case speechContinuityEndDetected case attendingState case attendingRequest case promptState case agentFunctionCall case agentFunctionResult case toolWillExecute case emergencyServiceSpan case agentEntityReferences case userContext case siriRequestCanceled case sessionSummary case deviceSelectionDecision case contextualMitigationDecision case userConfirmationRequest case userConfirmationResult case plannerRequestCreated case systemTurnInterruptionStarted case systemTurnInterruptionEnded case userTurnCanceled case systemTurnCanceled case externalAgentDialogOutcome case gatingResult case siriDismissed case executionError case remoteSpeechStreamingRequested case remoteSpeechStreamingStopRequested case companionRequired case personalRequestHandled case executionUnlockedByClient case userSelected case plannerModelFacingError case ipiClassificationResult case imageCaptureRequest case imageRetrievalResponse case queryContextPrediction case toolCallExampleRetrievalRequest case toolCallExampleRetrievalResponse case runtimeActivationChanged case modelInferenceCompleted case conversationFragmentCreated case conversationFragmentsRetrieved case speechHandlerError case sessionSummarizationRequest case sessionSummarizationResponse case generatedSnippetResponse case directResponseStreamContext case homeMembersInfo case sessionResumptionContext case sessionResume case remoteAgentPrimitiveAction case remoteAgentProvenanceUpdate case remotePersistenceDecision case siriDeviceRoutingOffers case siriDeviceRoutingCommit case agentRuntimeEnded case agentDirectResponse case agentInstructions case agentUserRequest case agentPersistenceOutput case safetyIncident case remoteCompanionSessionUpdate } enum SessionStartCodingKeys { case _0 } enum SessionEndCodingKeys { case _0 } enum UserTurnStartedCodingKeys { case _0 } enum UserTurnEndedCodingKeys { case _0 } enum UserTurnFinalizedCodingKeys { case _0 } enum SpeechReadyForNewUserTurnCodingKeys { case _0 } enum SiriActivationRequestedCodingKeys { case _0 } enum SiriActivatedCodingKeys { case _0 } enum SpeechPartialResultCodingKeys { case _0 } enum SpeechFinalResultCodingKeys { case _0 } enum RequestCodingKeys { case _0 } enum PlanCreatedCodingKeys { case _0 } enum ActionCreatedCodingKeys { case _0 } enum ActionCanceledCodingKeys { case _0 } enum ClientActionCreatedCodingKeys { case _0 } enum QueriesCreatedCodingKeys { case _0 } enum VariablesSetCodingKeys { case _0 } enum RecoverableErrorCodingKeys { case _0 } enum CriticalErrorCodingKeys { case _0 } enum EndOfPlanCodingKeys {} enum SystemTurnEndedCodingKeys { case _0 } enum TerminateCodingKeys {} enum QueriesExecutedCodingKeys { case _0 } enum ActionResolverRequestCreatedCodingKeys { case _0 } enum ResponseGenerationRequestCreatedCodingKeys { case _0 } enum ContextRetrievedCodingKeys { case _0 } enum ToolsRetrievedCodingKeys { case _0 } enum EntitySpanMatchedCodingKeys { case _0 } enum SystemResponseGeneratedCodingKeys { case _0 } enum SystemResponseRenderedCodingKeys { case _0 } enum StatementEvaluatedCodingKeys { case _0 } enum ExternalAgentRequestCodingKeys { case _0 } enum ExternalAgentOutcomeCodingKeys { case _0 } enum ExternalAgentRequestRewriteMetadataCodingKeys { case _0 } enum ToolResolutionCodingKeys { case _0 } enum UndoRedoRequestCodingKeys { case _0 } enum ClientUndoRedoRequestCodingKeys { case _0 } enum TypeConversionRequestCodingKeys { case _0 } enum TypeConversionResultCodingKeys { case _0 } enum QueryDecorationResultCodingKeys { case _0 } enum ContinuePlanningCodingKeys { case _0 } enum QueryDecorationPrePlannerResultCodingKeys { case _0 } enum SkipStatementCodingKeys { case _0 } enum ExecutionPreconditionEvaluatorRequestCodingKeys { case _0 } enum RequestAmendmentCodingKeys { case _0 } enum ToolRetrievalRequestCodingKeys { case _0 } enum ContextRetrievalRequestCodingKeys { case _0 } enum SpanMatchRequestCodingKeys { case _0 } enum IntermediateSystemResponseCodingKeys { case _0 } enum IntermediateSystemResponseRenderedCodingKeys { case _0 } enum AgentPrimitiveActionCodingKeys { case _0 } enum ExecutorGateResultCodingKeys { case _0 } enum SpeechDetectionUpdateCodingKeys { case _0 } enum SpeechContinuityEndDetectedCodingKeys { case _0 } enum AttendingStateCodingKeys { case _0 } enum AttendingRequestCodingKeys { case _0 } enum PromptStateCodingKeys { case _0 } enum AgentFunctionCallCodingKeys { case _0 } enum AgentFunctionResultCodingKeys { case _0 } enum ToolWillExecuteCodingKeys { case _0 } enum EmergencyServiceSpanCodingKeys { case _0 } enum AgentEntityReferencesCodingKeys { case _0 } enum UserContextCodingKeys { case _0 } enum SiriRequestCanceledCodingKeys { case _0 } enum SessionSummaryCodingKeys { case _0 } enum DeviceSelectionDecisionCodingKeys { case _0 } enum ContextualMitigationDecisionCodingKeys { case _0 } enum UserConfirmationRequestCodingKeys { case _0 } enum UserConfirmationResultCodingKeys { case _0 } enum PlannerRequestCreatedCodingKeys { case _0 } enum SystemTurnInterruptionStartedCodingKeys { case _0 } enum SystemTurnInterruptionEndedCodingKeys { case _0 } enum UserTurnCanceledCodingKeys { case _0 } enum SystemTurnCanceledCodingKeys { case _0 } enum ExternalAgentDialogOutcomeCodingKeys { case _0 } enum GatingResultCodingKeys { case _0 } enum SiriDismissedCodingKeys { case _0 } enum ExecutionErrorCodingKeys { case _0 } enum RemoteSpeechStreamingRequestedCodingKeys { case _0 } enum RemoteSpeechStreamingStopRequestedCodingKeys { case _0 } enum CompanionRequiredCodingKeys { case _0 } enum PersonalRequestHandledCodingKeys { case _0 } enum ExecutionUnlockedByClientCodingKeys { case _0 } enum UserSelectedCodingKeys { case _0 } enum PlannerModelFacingErrorCodingKeys { case _0 } enum IpiClassificationResultCodingKeys { case _0 } enum ImageCaptureRequestCodingKeys { case _0 } enum ImageRetrievalResponseCodingKeys { case _0 } enum QueryContextPredictionCodingKeys { case _0 } enum ToolCallExampleRetrievalRequestCodingKeys { case _0 } enum ToolCallExampleRetrievalResponseCodingKeys { case _0 } enum RuntimeActivationChangedCodingKeys { case _0 } enum ModelInferenceCompletedCodingKeys { case _0 } enum ConversationFragmentCreatedCodingKeys { case _0 } enum ConversationFragmentsRetrievedCodingKeys { case _0 } enum SpeechHandlerErrorCodingKeys { case _0 } enum SessionSummarizationRequestCodingKeys { case _0 } enum SessionSummarizationResponseCodingKeys { case _0 } enum GeneratedSnippetResponseCodingKeys { case _0 } enum DirectResponseStreamContextCodingKeys { case _0 } enum HomeMembersInfoCodingKeys { case _0 } enum SessionResumptionContextCodingKeys { case _0 } enum SessionResumeCodingKeys { case _0 } enum RemoteAgentPrimitiveActionCodingKeys { case _0 } enum RemoteAgentProvenanceUpdateCodingKeys { case _0 } enum RemotePersistenceDecisionCodingKeys { case _0 } enum SiriDeviceRoutingOffersCodingKeys { case _0 } enum SiriDeviceRoutingCommitCodingKeys { case _0 } enum AgentRuntimeEndedCodingKeys { case _0 } enum AgentDirectResponseCodingKeys { case _0 } enum AgentInstructionsCodingKeys { case _0 } enum AgentUserRequestCodingKeys { case _0 } enum AgentPersistenceOutputCodingKeys { case _0 } enum SafetyIncidentCodingKeys { case _0 } enum RemoteCompanionSessionUpdateCodingKeys { case _0 } indirect case sessionStart(IntelligenceFlowPlannerSupport.SessionStart) indirect case sessionEnd(IntelligenceFlowPlannerSupport.SessionEnd) indirect case userTurnStarted(IntelligenceFlowPlannerSupport.UserTurnStarted) indirect case userTurnEnded(IntelligenceFlowPlannerSupport.UserTurnEnded) indirect case userTurnFinalized(IntelligenceFlowPlannerSupport.UserTurnFinalized) indirect case speechReadyForNewUserTurn(IntelligenceFlowPlannerSupport.SpeechReadyForNewUserTurn) indirect case siriActivationRequested(IntelligenceFlowPlannerSupport.SiriActivationRequested) indirect case siriActivated(IntelligenceFlowPlannerSupport.SiriActivated) indirect case speechPartialResult(IntelligenceFlowPlannerSupport.SpeechPartialResult) indirect case speechFinalResult(IntelligenceFlowPlannerSupport.SpeechFinalResult) indirect case request(IntelligenceFlowPlannerSupport.Request) indirect case planCreated(IntelligenceFlowPlannerSupport.Session.Plan) indirect case actionCreated(IntelligenceFlow.Action) indirect case actionCanceled(IntelligenceFlowPlannerSupport.ActionCancellation) indirect case clientActionCreated(IntelligenceFlowPlannerSupport.ClientAction) indirect case queriesCreated(IntelligenceFlowPlannerSupport.QueryStep) indirect case variablesSet(IntelligenceFlowPlannerSupport.VariableStep) indirect case recoverableError(IntelligenceFlowPlannerSupport.Session.RecoverableError) indirect case criticalError(IntelligenceFlowPlannerSupport.SessionError) indirect case systemTurnEnded(IntelligenceFlowPlannerSupport.SystemTurnEnded) indirect case queriesExecuted(IntelligenceFlowPlannerSupport.QueryStepResults) indirect case actionResolverRequestCreated(IntelligenceFlowPlannerSupport.ActionResolverRequest) indirect case responseGenerationRequestCreated(IntelligenceFlowPlannerSupport.ResponseGenerationRequest) indirect case contextRetrieved(IntelligenceFlowPlannerSupport.ContextRetrieved) indirect case toolsRetrieved(IntelligenceFlowPlannerSupport.ToolRetrievalResponse) indirect case entitySpanMatched(IntelligenceFlowPlannerSupport.EntitySpanMatchResult) indirect case systemResponseGenerated(IntelligenceFlow.SystemResponse) indirect case systemResponseRendered(IntelligenceFlowPlannerSupport.SystemResponseRendered) indirect case statementEvaluated(IntelligenceFlowPlannerSupport.StatementResult) indirect case externalAgentRequest(IntelligenceFlowPlannerSupport.ExternalAgentRequest) indirect case externalAgentOutcome(IntelligenceFlowPlannerSupport.ExternalAgentOutcome) indirect case externalAgentRequestRewriteMetadata(IntelligenceFlowPlannerSupport.ExternalAgentRequestRewriteMetadata) indirect case toolResolution(IntelligenceFlowPlannerSupport.ToolResolution) indirect case undoRedoRequest(IntelligenceFlowPlannerSupport.UndoRedoRequest) indirect case clientUndoRedoRequest(IntelligenceFlowPlannerSupport.ClientUndoRedoRequest) indirect case typeConversionRequest(IntelligenceFlowPlannerSupport.TypeConversionRequest) indirect case typeConversionResult(IntelligenceFlowPlannerSupport.TypeConversionResult) indirect case queryDecorationResult(IntelligenceFlowPlannerSupport.QueryDecorationResult) indirect case continuePlanning(IntelligenceFlowPlannerSupport.ContinuePlanning) indirect case queryDecorationPrePlannerResult(IntelligenceFlowPlannerSupport.QueryDecorationPrePlannerResult) indirect case skipStatement(IntelligenceFlowPlannerSupport.SkipStatement) indirect case executionPreconditionEvaluatorRequest(IntelligenceFlowPlannerSupport.ExecutionPreconditionEvaluatorRequest) indirect case requestAmendment(IntelligenceFlowPlannerSupport.RequestAmendment) indirect case toolRetrievalRequest(IntelligenceFlowPlannerSupport.ToolRetrievalRequest) indirect case contextRetrievalRequest(IntelligenceFlowPlannerSupport.ContextRetrievalRequest) indirect case spanMatchRequest(IntelligenceFlowPlannerSupport.SpanMatchRequest) indirect case intermediateSystemResponse(IntelligenceFlow.IntermediateSystemResponse) indirect case intermediateSystemResponseRendered(IntelligenceFlow.IntermediateSystemResponseRendered) indirect case agentPrimitiveAction(IntelligenceFlowPlannerSupport.AgentPrimitiveAction) indirect case executorGateResult(IntelligenceFlowPlannerSupport.ExecutorGateResult) indirect case speechDetectionUpdate(IntelligenceFlowPlannerSupport.SpeechDetectionUpdate) indirect case speechContinuityEndDetected(IntelligenceFlowPlannerSupport.SpeechContinuityEndDetected) indirect case attendingState(IntelligenceFlowPlannerSupport.AttendingState) indirect case attendingRequest(IntelligenceFlowPlannerSupport.AttendingRequest) indirect case promptState(IntelligenceFlowPlannerSupport.PromptState) indirect case agentFunctionCall(IntelligenceFlow.AgentFunctionCall) indirect case agentFunctionResult(IntelligenceFlow.AgentFunctionResult) indirect case toolWillExecute(IntelligenceFlowPlannerSupport.ToolWillExecute) indirect case emergencyServiceSpan(IntelligenceFlowPlannerSupport.EmergencyServiceSpan) indirect case agentEntityReferences(IntelligenceFlow.AgentEntityReferences) indirect case userContext(IntelligenceFlowShared.UserContext) indirect case siriRequestCanceled(IntelligenceFlowPlannerSupport.SiriRequestCanceled) indirect case sessionSummary(IntelligenceFlowPlannerSupport.SessionSummary) indirect case deviceSelectionDecision(IntelligenceFlowPlannerSupport.DeviceSelectionDecision) indirect case contextualMitigationDecision(IntelligenceFlowPlannerSupport.ContextualMitigationDecision) indirect case userConfirmationRequest(IntelligenceFlowPlannerSupport.UserConfirmationRequest) indirect case userConfirmationResult(IntelligenceFlowPlannerSupport.UserConfirmationResult) indirect case plannerRequestCreated(IntelligenceFlowPlannerSupport.PlannerRequest) indirect case systemTurnInterruptionStarted(IntelligenceFlowPlannerSupport.SystemTurnInterruptionStarted) indirect case systemTurnInterruptionEnded(IntelligenceFlowPlannerSupport.SystemTurnInterruptionEnded) indirect case userTurnCanceled(IntelligenceFlowPlannerSupport.UserTurnCanceled) indirect case systemTurnCanceled(IntelligenceFlowPlannerSupport.SystemTurnCanceled) indirect case externalAgentDialogOutcome(IntelligenceFlowPlannerSupport.ExternalAgentDialogOutcome) indirect case gatingResult(IntelligenceFlowPlannerSupport.GatingResult) indirect case siriDismissed(IntelligenceFlowPlannerSupport.SiriDismissed) indirect case executionError(IntelligenceFlowPlannerSupport.ExecutionError) indirect case remoteSpeechStreamingRequested(IntelligenceFlowPlannerSupport.RemoteSpeechStreamingRequested) indirect case remoteSpeechStreamingStopRequested(IntelligenceFlowPlannerSupport.RemoteSpeechStreamingStopRequested) indirect case companionRequired(IntelligenceFlowPlannerSupport.CompanionRequired) indirect case personalRequestHandled(IntelligenceFlowPlannerSupport.PersonalRequestHandled) indirect case executionUnlockedByClient(IntelligenceFlowPlannerSupport.ExecutionUnlockedByClient) indirect case userSelected(IntelligenceFlowShared.User) indirect case plannerModelFacingError(IntelligenceFlow.PlannerModelFacingError) indirect case ipiClassificationResult(IntelligenceFlowPlannerSupport.IPIClassificationResult) indirect case imageCaptureRequest(IntelligenceFlowPlannerSupport.ImageCaptureRequest) indirect case imageRetrievalResponse(IntelligenceFlowPlannerSupport.ImageRetrievalResponse) indirect case queryContextPrediction(IntelligenceFlowPlannerSupport.QueryContextPrediction) indirect case toolCallExampleRetrievalRequest(IntelligenceFlowPlannerSupport.ToolCallExampleRetrievalRequest) indirect case toolCallExampleRetrievalResponse(IntelligenceFlowPlannerSupport.ToolCallExampleRetrievalResponse) indirect case runtimeActivationChanged(IntelligenceFlowPlannerSupport.RuntimeActivationChanged) indirect case modelInferenceCompleted(IntelligenceFlow.ModelInferenceCompleted) indirect case conversationFragmentCreated(IntelligenceFlowPlannerSupport.ConversationFragmentCreated) indirect case conversationFragmentsRetrieved(IntelligenceFlowPlannerSupport.ConversationFragmentsRetrieved) indirect case speechHandlerError(IntelligenceFlowPlannerSupport.SpeechHandlerError) indirect case sessionSummarizationRequest(IntelligenceFlowPlannerSupport.SessionSummarizationRequest) indirect case sessionSummarizationResponse(IntelligenceFlowPlannerSupport.SessionSummarizationResponse) indirect case generatedSnippetResponse(IntelligenceFlow.MessagePayload.GeneratedSnippetResponse) indirect case directResponseStreamContext(IntelligenceFlowPlannerSupport.DirectResponseStreamContext) indirect case homeMembersInfo(IntelligenceFlowShared.HomeMembersInfo) indirect case sessionResumptionContext(IntelligenceFlowPlannerSupport.SessionResumptionContext) indirect case sessionResume(IntelligenceFlowPlannerSupport.SessionResume) indirect case remoteAgentPrimitiveAction(IntelligenceFlowPlannerSupport.RemoteAgentPrimitiveAction) indirect case remoteAgentProvenanceUpdate(IntelligenceFlowPlannerSupport.RemoteAgentProvenanceUpdate) indirect case remotePersistenceDecision(IntelligenceFlowPlannerSupport.RemotePersistenceDecision) indirect case siriDeviceRoutingOffers(IntelligenceFlowPlannerSupport.SiriDeviceRoutingOffers) indirect case siriDeviceRoutingCommit(IntelligenceFlowPlannerSupport.SiriDeviceRoutingCommit) indirect case agentRuntimeEnded(IntelligenceFlowPlannerSupport.AgentRuntimeEnded) indirect case agentDirectResponse(IntelligenceFlowPlannerSupport.AgentDirectResponse) indirect case agentInstructions(IntelligenceFlowPlannerSupport.AgentInstructions) indirect case agentUserRequest(IntelligenceFlowPlannerSupport.AgentUserRequest) indirect case agentPersistenceOutput(IntelligenceFlowPlannerSupport.AgentPersistenceOutput) indirect case safetyIncident(IntelligenceFlowPlannerSupport.SafetyIncident) indirect case remoteCompanionSessionUpdate(IntelligenceFlowPlannerSupport.RemoteCompanionSessionUpdate) case endOfPlan case terminate init(transcript: IntelligenceFlowProto.TranscriptProtoPayload) throws init(currentVersion: IntelligenceFlowProto.VersionedTranscriptProtoEventPayload.V1) throws init(crossDeviceCurrentVersion: IntelligenceFlowProto.VersionedTranscriptProtoCrossDeviceEventPayload.V2) throws var debugDescription: Swift.String { get } var description: Swift.String { get } var evaluationPayload: (any IntelligenceFlow.EvaluationPayload)? { get } var eventTypeString: Swift.String { get } var indexableStringContent: Swift.String? { get } var payloadType: IntelligenceFlowPlannerSupport.SessionEventPayloadType { get } var queryBehavior: IntelligenceFlowPlannerSupport.Session.Event.Payload.QueryTrackingBehavior { get } var statementIds: [IntelligenceFlow.StatementID] { get } func streamRedact() func applyingRequestAmendment(transcript: any IntelligenceFlowPlannerSupport.TailTranscriptProtocol) -> IntelligenceFlowPlannerSupport.Session.Event.Payload } enum CodingKeys { case id case sessionId case userTurnId case queryEventId case structuredAgentId case payload case clientRequestId case clientSessionId case clientApplicationId case clientGroupId case timepoint case sender case postingSpan case initiatedSpans } var id: Foundation.UUID var sessionId: Foundation.UUID var userTurnId: Foundation.UUID? var queryEventId: Foundation.UUID? var structuredAgentId: IntelligenceFlow.StructuredAgentID? var payload: IntelligenceFlowPlannerSupport.Session.Event.Payload var clientRequestId: Swift.String var clientSessionId: Swift.String var clientApplicationId: Swift.String var clientGroupId: Swift.String? var timepoint: IntelligenceFlowPlannerSupport.Timepoint var sender: IntelligenceFlowPlannerSupport.ParticipantID? var postingSpan: IntelligenceFlowPlannerSupport.SpanID? var initiatedSpans: IntelligenceFlowPlannerSupport.InitiatedSpans init(transcript: IntelligenceFlowProto.TranscriptProtoEvent) throws init(currentVersion: IntelligenceFlowProto.VersionedTranscriptProtoEvent.V1) throws init(crossDeviceCurrentVersion: IntelligenceFlowProto.VersionedTranscriptProtoCrossDeviceEvent.V2) throws init(id: Foundation.UUID, sessionId: Foundation.UUID, userTurnId: Foundation.UUID?, queryEventId: Foundation.UUID?, structuredAgentId: IntelligenceFlow.StructuredAgentID?, payload: IntelligenceFlowPlannerSupport.Session.Event.Payload, clientRequestId: Swift.String, clientSessionId: Swift.String, clientApplicationId: Swift.String, clientGroupId: Swift.String?, timepoint: IntelligenceFlowPlannerSupport.Timepoint, sender: IntelligenceFlowPlannerSupport.ParticipantID?, postingSpan: IntelligenceFlowPlannerSupport.SpanID?, initiatedSpans: IntelligenceFlowPlannerSupport.InitiatedSpans) init(id: Foundation.UUID, sessionId: Foundation.UUID, userTurnId: Foundation.UUID?, queryEventId: Foundation.UUID?, agentId: IntelligenceFlow.AgentID?, payload: IntelligenceFlowPlannerSupport.Session.Event.Payload, clientRequestId: Swift.String, clientSessionId: Swift.String, clientApplicationId: Swift.String, clientGroupId: Swift.String?, timepoint: IntelligenceFlowPlannerSupport.Timepoint, sender: IntelligenceFlowPlannerSupport.ParticipantID?, postingSpan: IntelligenceFlowPlannerSupport.SpanID?, initiatedSpans: IntelligenceFlowPlannerSupport.InitiatedSpans) init(crossDeviceVersionedProtoBytes: Foundation.Data) throws init(sessionId: Foundation.UUID, userTurnId: Foundation.UUID?, queryEventId: Foundation.UUID?, structuredAgentId: IntelligenceFlow.StructuredAgentID?, payload: IntelligenceFlowPlannerSupport.Session.Event.Payload, clientRequestId: Swift.String, clientSessionId: Swift.String, clientApplicationId: Swift.String, clientGroupId: Swift.String?, timepoint: IntelligenceFlowPlannerSupport.Timepoint, sender: IntelligenceFlowPlannerSupport.ParticipantID?, postingSpan: IntelligenceFlowPlannerSupport.SpanID?, initiatedSpans: IntelligenceFlowPlannerSupport.InitiatedSpans) init(sessionId: Foundation.UUID, userTurnId: Foundation.UUID?, queryEventId: Foundation.UUID?, agentId: IntelligenceFlow.AgentID?, payload: IntelligenceFlowPlannerSupport.Session.Event.Payload, clientRequestId: Swift.String, clientSessionId: Swift.String, clientApplicationId: Swift.String, clientGroupId: Swift.String?, timepoint: IntelligenceFlowPlannerSupport.Timepoint, sender: IntelligenceFlowPlannerSupport.ParticipantID?, postingSpan: IntelligenceFlowPlannerSupport.SpanID?, initiatedSpans: IntelligenceFlowPlannerSupport.InitiatedSpans) var agentId: IntelligenceFlow.AgentID? { get set } var description: Swift.String { get } var evaluationEvent: IntelligenceFlow.EvaluationEvent? { get } var siriActivatedPayload: IntelligenceFlowPlannerSupport.SiriActivated? { get } var userSelectedFromUserSelectorPayload: IntelligenceFlowShared.User? { get } func formingTelemetryEvent(state: IntelligenceFlowPlannerSupport.EndedState, contextId: Foundation.UUID) -> IntelligencePlatformLibrary.IntelligenceFlowTelemetry func streamRedact() func formingResponse(id: consuming IntelligenceFlowPlannerSupport.PreassignedEventID, _: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func formingResponse(_: IntelligenceFlowPlannerSupport.Session.Event.Payload) -> IntelligenceFlowPlannerSupport.Session.Event func formingTraceIds() -> IntelligencePlatformLibrary.IntelligenceFlowIdentifiers func formingStatusUpdate(id: consuming IntelligenceFlowPlannerSupport.PreassignedEventID, _: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.Payload) -> IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent func formingStatusUpdate(_: IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent.Payload) -> IntelligenceFlowPlannerSupport.Session.StatusUpdateEvent func crossDeviceProtoBytes(forVersion: Swift.Int) throws -> Foundation.Data func redactedForFeatureStore() -> IntelligenceFlowPlannerSupport.Session.Event func versionedCrossDeviceProtoBytes() throws -> Foundation.Data } struct Plan { enum Source { enum CodingKeys { case prescribedPlanGenerator case planOverride case agenticPlanner case suggestedInvocationPlanGenerator case ruleBasedPlanGenerator } enum PrescribedPlanGeneratorCodingKeys {} enum PlanOverrideCodingKeys {} enum AgenticPlannerCodingKeys {} enum SuggestedInvocationPlanGeneratorCodingKeys {} enum RuleBasedPlanGeneratorCodingKeys {} case prescribedPlanGenerator case planOverride case agenticPlanner case suggestedInvocationPlanGenerator case ruleBasedPlanGenerator init(transcript: IntelligenceFlowProto.TranscriptProtoPlanSource) throws } enum CodingKeys { case prompt case promptResponse case statements case overrideId case source } let prompt: Swift.String let promptResponse: Swift.String let statements: [IntelligenceFlowPlannerSupport.ProgramStatement] let overrideId: Swift.String? let source: IntelligenceFlowPlannerSupport.Session.Plan.Source init(transcript: IntelligenceFlowProto.TranscriptProtoPlan) throws init(prompt: Swift.String, promptResponse: Swift.String, statements: [IntelligenceFlowPlannerSupport.ProgramStatement], overrideId: Swift.String?, source: IntelligenceFlowPlannerSupport.Session.Plan.Source, program: IntelligenceFlow.AST.Program) var description: Swift.String { get } } enum RecoverableError { enum CodingKeys { case planGenerationError } enum PlanGenerationErrorCodingKeys { case _0 } case planGenerationError(IntelligenceFlowPlannerSupport.Session.PlanGenerationError) init(transcript: IntelligenceFlowProto.TranscriptProtoRecoverableError) throws var error: IntelligenceFlow.IntelligenceFlowError { get } var evaluationPayload: (any IntelligenceFlow.EvaluationPayload)? { get } func logFailure() } enum PlanGenerationError { enum CodingKeys { case modelOutputError } enum ModelOutputErrorCodingKeys { case _0 } case modelOutputError(IntelligenceFlowPlannerSupport.Session.PlanGenerationModelOutputError) init(transcript: IntelligenceFlowProto.TranscriptProtoPlanGenerationError) throws } struct PlanGenerationModelOutputError { enum CodingKeys { case rawModelOutput case prompt case error } var rawModelOutput: Swift.String var prompt: Swift.String var error: IntelligenceFlow.IntelligenceFlowError init(rawModelOutput: Swift.String, prompt: Swift.String, error: IntelligenceFlow.IntelligenceFlowError) init(transcript: IntelligenceFlowProto.TranscriptProtoPlanGenerationModelOutputError) throws } }