76 declarations · 1370 ms
extension IntelligenceFlowShared.UserContext: Swift.CustomStringConvertibleextension IntelligenceFlowShared.UserContext: Swift.Decodableextension IntelligenceFlowShared.UserContext: Swift.Encodableextension IntelligenceFlowShared.UserContextextension IntelligenceFlowShared.UserContext: Swift.Equatabletypealias HandwrittenType = IntelligenceFlowShared.UserContextmethod descriptor for annotate(transcriptEvents: [GenerativeAgents.TranscriptContent], userContext: IntelligenceFlowShared.UserContext?, entityMappings: IntelligenceFlowPlannerSupport.EntityMappings?, imageWasInContext: Bool, requestUtterances: [String], annotations: IntelligenceFlowPlannerRuntime.PlanningStepAnnotations) async -> ()annotate(transcriptEvents: [GenerativeAgents.TranscriptContent], userContext: IntelligenceFlowShared.UserContext?, entityMappings: IntelligenceFlowPlannerSupport.EntityMappings?, imageWasInContext: Bool, requestUtterances: [String], annotations: IntelligenceFlowPlannerRuntime.PlanningStepAnnotations) async -> ()awaitGazeTargetedContext(timeout: Duration) async -> IntelligenceFlowShared.UserContext?var bufferedContexts: [String : IntelligenceFlowShared.UserContext]createStream(for: String) -> AsyncStream<IntelligenceFlowShared.UserContext>decision<A where A: IntelligenceFlowPlannerSupport.FullTranscriptProtocol>(transcriptEvents: A, prediction: IntelligenceFlowPlannerSupport.QueryContextPrediction?, invocationSource: IntelligenceFlowShared.StructuredContext.SiriRequestContext.InvocationSource?, userContext: IntelligenceFlowShared.UserContext?, deviceIdiom: IntelligenceFlowShared.StructuredContext.SiriRequestContext.DeviceIdiom?) -> IntelligenceFlowPlannerSupport.ImageSourceDecisionmethod descriptor for decision<A where A1: IntelligenceFlowPlannerSupport.FullTranscriptProtocol>(transcriptEvents: A1, prediction: IntelligenceFlowPlannerSupport.QueryContextPrediction?, invocationSource: IntelligenceFlowShared.StructuredContext.SiriRequestContext.InvocationSource?, userContext: IntelligenceFlowShared.UserContext?, deviceIdiom: IntelligenceFlowShared.StructuredContext.SiriRequestContext.DeviceIdiom?) -> IntelligenceFlowPlannerSupport.ImageSourceDecisiondeserializeContext() throws -> IntelligenceFlowShared.UserContextstatic effectiveIsOnLockScreen(userContext: IntelligenceFlowShared.UserContext?) -> Boolstatic var empty: IntelligenceFlowShared.UserContext { get }method descriptor for ensuringLiveCalls(in: IntelligenceFlowShared.UserContext, toolbox: IntelligenceFlowPlannerSupport.Toolbox?) async -> IntelligenceFlowShared.UserContextensuringLiveCalls(in: IntelligenceFlowShared.UserContext, toolbox: IntelligenceFlowPlannerSupport.Toolbox?) async -> IntelligenceFlowShared.UserContextextractForegroundWindowText(from: IntelligenceFlowShared.UserContext, budget: Int) -> [String]fetch(plannerServiceMode: IntelligenceFlowPlannerRuntime.PlannerServiceMode, excludedAppBundleIds: Set<String>?, invocationContext: IntelligenceFlowShared.InvocationContext?, timeouts: IntelligenceFlowShared.UserContextTimeouts) async throws -> IntelligenceFlowShared.UserContextfetch(screenshotActiveWindow: Bool, excludedAppBundleIds: Set<String>?, invocationContext: IntelligenceFlowShared.InvocationContext?, timeouts: IntelligenceFlowShared.UserContextTimeouts) async throws -> IntelligenceFlowShared.UserContextfetchUserContext(IntelligenceFlowContext.ContextTool.UserContextRequest) async throws -> IntelligenceFlowShared.UserContextfetchUserContext() async throws -> IntelligenceFlowShared.UserContextforegroundContentChanged(since: IntelligenceFlowShared.UserContext) -> Bool?static foregroundWindowRenderLevel(for: IntelligenceFlowShared.UserContext?, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?) -> IntelligenceFlowShared.LevelOfDetailgenerateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]generateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]generateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]generateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]generateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]method descriptor for generateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]generateInstructions(sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, planningStepCount: Int, requestQueryEventId: Foundation.UUID, userContext: IntelligenceFlowShared.UserContext?) async throws -> [IntelligenceFlowPlannerSupport.AgentInstructions]static generatePrerequestToolCallPairs(using: IntelligenceFlowProto.PlannerToolMetadata_SystemPromptData, inputMode: IntelligenceFlowPlannerSupport.AgentInputMode, responseMode: IntelligenceFlowPlannerSupport.AgentResponseMode, sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, promptRenderingContext: IntelligenceFlowPlannerSupport.PromptRenderingContext, userContext: IntelligenceFlowShared.UserContext?, contextPromptRenderer: IntelligenceFlowPlannerRuntime.ContextPromptRenderer, previousSpanMatchEntities: [IntelligenceFlowShared.SpanMatchedEntity], currentSpanMatchEntities: [IntelligenceFlowShared.SpanMatchedEntity], spanMatchingPromptRenderer: IntelligenceFlowPlannerRuntime.SpanMatchPromptRenderer, mitigationFeatureEnabled: Bool, prerequestTemplateAdditionalInput: IntelligenceFlowPlannerRuntime.PrerequestTemplateAdditionalInput, renderedConversationFragments: String?, gazeCoordinates: IntelligenceFlowPlannerSupport.GazeCoordinates?, userUtterance: String?, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode) async throws -> (payloads: [IntelligenceFlowPlannerSupport.Session.Event.Payload], templateContextAutoGenerateToolCall: IntelligenceFlowPlannerRuntime.TemplateContextAutoGenerateToolCall?)getRetrievedPlannerTools(query: String, sessionState: IntelligenceFlowPlannerSupport.Session.SessionState, includeQueryContext: Bool, userContext: IntelligenceFlowShared.UserContext?, useSystemToolClassifier: Bool, agentInputMode: IntelligenceFlowPlannerSupport.AgentInputMode, agentResponseMode: IntelligenceFlowPlannerSupport.AgentResponseMode) async throws -> IntelligenceFlowShared.QueryDecorationToolRetrievalResponse?handleCombinedToolboxRetrieval(query: String, trLoggingContext: IntelligenceFlowPlannerSupport.TRSELFLoggingContext, includeQueryContext: Bool, userContext: IntelligenceFlowShared.UserContext?, toolboxInput: IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxInput, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode, featureFlagProvider: IntelligenceFlowShared.FeatureFlagProvider, useSystemToolClassifier: Bool) async throws(IntelligenceFlowPlannerRuntime.QueryAugmentationError) -> IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxResponsemethod descriptor for handleCombinedToolboxRetrieval(query: String, trLoggingContext: IntelligenceFlowPlannerSupport.TRSELFLoggingContext, includeQueryContext: Bool, userContext: IntelligenceFlowShared.UserContext?, toolboxInput: IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxInput, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode, featureFlagProvider: IntelligenceFlowShared.FeatureFlagProvider, useSystemToolClassifier: Bool) async throws(IntelligenceFlowPlannerRuntime.QueryAugmentationError) -> IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxResponsemethod descriptor for handleCombinedToolboxRetrievalForSubsequentTurn(query: String, userContext: IntelligenceFlowShared.UserContext?, toolboxInput: IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxInput, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode, featureFlagProvider: IntelligenceFlowShared.FeatureFlagProvider) async throws(IntelligenceFlowPlannerRuntime.QueryAugmentationError) -> IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxResponsehandleCombinedToolboxRetrievalForSubsequentTurn(query: String, userContext: IntelligenceFlowShared.UserContext?, toolboxInput: IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxInput, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode, featureFlagProvider: IntelligenceFlowShared.FeatureFlagProvider) async throws(IntelligenceFlowPlannerRuntime.QueryAugmentationError) -> IntelligenceFlowPlannerRuntime.QueryAugmentationToolboxResponsemethod descriptor for handleContextRetrieval(traceId: Foundation.UUID, caller: IntelligenceFlowPlannerRuntime.ContextRetrievalCaller, userTurnId: Foundation.UUID?, invocationContext: IntelligenceFlowShared.InvocationContext?) async throws(IntelligenceFlowPlannerRuntime.QueryAugmentationError) -> IntelligenceFlowShared.UserContexthandleContextRetrieval(traceId: Foundation.UUID, caller: IntelligenceFlowPlannerRuntime.ContextRetrievalCaller, userTurnId: Foundation.UUID?, invocationContext: IntelligenceFlowShared.InvocationContext?) async throws(IntelligenceFlowPlannerRuntime.QueryAugmentationError) -> IntelligenceFlowShared.UserContext