SwiftextensionIntelligenceFlowRuntime

extension IntelligenceFlowPlannerSupport.Session

Structure

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

extension IntelligenceFlowPlannerSupport.Session {
    struct StandardSessionResources {
        class PlannerToolboxCacheBox {
            let entries: Synchronization.Mutex<[IntelligenceFlowPlannerSupport.Session.StandardSessionResources.PlannerToolboxCacheKey : IntelligenceFlowPlannerSupport.PlannerToolbox]>
        }
        struct PlannerToolboxCacheKey {
            let flavor: IntelligenceFlowPlannerSupport.Session.StandardSessionResources.PlannerToolboxFlavor
            let locale: Foundation.Locale
        }
        enum PlannerToolboxFlavor {
            case preferred(IntelligenceFlowPlannerSupport.PlannerToolRegistryType)
            case hybridOnDevice
            case catalog
        }
        var sessionId: IntelligenceFlow.SessionID
        var sessionConfiguration: IntelligenceFlow.SessionConfiguration
        var runtimeKind: IntelligenceFlowPlannerSupport.Session.RuntimeKind
        var identityChain: [IntelligenceFlowPlannerSupport.Session.SessionIdentityToken]
        var actionRequirementsEvaluator: IntelligenceFlowPlannerRuntime.MultiActionRequirementEvaluator
        var toolbox: IntelligenceFlowPlannerSupport.Toolbox
        let actionValidator: (any IntelligenceFlowPlannerRuntime.ActionValidatorProtocol)?
        let injectableContentClassifier: IntelligenceFlowPlannerRuntime.InjectableContentClassifier?
        let modelPrewarmCoordinator: IntelligenceFlowPlannerRuntime.ModelPrewarmCoordinator?
        let routingCoordinator: IntelligenceFlowPlannerRuntime.RoutingCoordinator?
        let fuzzyShortcutMatchProvider: (any IntelligenceFlowPlannerSupport.FuzzyShortcutMatchProvider)?
        let imageCaptureAndRetrievalService: IntelligenceFlowPlannerRuntime.DefaultImageCaptureAndRetrievalService
        let crossDeviceContextArrivalNotifier: IntelligenceFlowPlannerRuntime.CrossDeviceContextArrivalNotifier
        let plannerConfigurationFeatureProvider: any IntelligenceFlowPlannerSupport.PlannerConfigurationFeatureProviding
        let agentSessionHandle: (any IntelligenceFlowRuntime.AgentSessionHandling)?
        let deviceAuthenticationStateCalculator: IntelligenceFlowRuntime.DeviceAuthenticationStateCalculator
        let provenanceRegistry: IntelligenceFlowPlannerRuntime.ProvenanceRuntimeContext.Registry
        let appExclusionService: any IntelligenceFlowShared.AppExclusionProviding
        var snippetStreamingContextProvider: IntelligenceFlowRuntime.SnippetStreamingRouter.Scoped
        let callObserverService: any IntelligenceFlowRuntime.CallObserverServiceProtocol
        let _toolExecutionSessionHolder: ProactiveDaemonSupport.SendableLazy<any IntelligenceFlowPlannerSupport.ToolExecutionSessionProviding>
        let sharedToolKitSessionOwner: IntelligenceFlowRuntime.SharedToolKitSessionOwner?
        let multiAgentConfiguration: IntelligenceFlow.MultiAgentConfiguration?
        let _flowToolsExecutionSessionHolder: ProactiveDaemonSupport.SendableLazy<IntelligenceFlowRuntime.ExecutionSessionHolder<any FlowToolTypes.FlowToolsExecutionSessionProtocol>>
        let _builtInsExecutionSessionHolder: ProactiveDaemonSupport.SendableLazy<IntelligenceFlowRuntime.ExecutionSessionHolder<any IntelligenceFlowRuntime.BuiltInsExecutionSessionProtocol>>
        let _materializedFlowToolsHolder: os.OSAllocatedUnfairLock<IntelligenceFlowRuntime.ExecutionSessionTracking<IntelligenceFlowRuntime.ExecutionSessionHolder<any FlowToolTypes.FlowToolsExecutionSessionProtocol>>>
        let _materializedBuiltInsHolder: os.OSAllocatedUnfairLock<IntelligenceFlowRuntime.ExecutionSessionTracking<IntelligenceFlowRuntime.ExecutionSessionHolder<any IntelligenceFlowRuntime.BuiltInsExecutionSessionProtocol>>>
        let _builtInsToolRegistry: ProactiveDaemonSupport.SendableLazy<any IntelligenceFlowRuntime.BuiltInsToolRegistryProtocol>
        let _locationManagerHolder: ProactiveDaemonSupport.SendableLazy<IntelligenceFlowRuntime.LocationManagerHolder>
        let _entityServiceHolder: ProactiveDaemonSupport.SendableLazy<EntityService.EntityServiceHolder>
        let searchDedupRecorder: IntelligenceFlowPlannerSupport.SearchDedupRecorder?
        let plannerToolboxCache: IntelligenceFlowPlannerSupport.Session.StandardSessionResources.PlannerToolboxCacheBox
    }
    protocol SessionResourceProviding where Self.ActionRequirementEvaluator: IntelligenceFlowPlannerRuntime.ActionRequirementEvaluating, Self.SnippetStreamingContextProvider: IntelligenceFlowRuntime.SnippetStreamingContextProviding {
        associatedtype ActionRequirementEvaluator
        associatedtype SnippetStreamingContextProvider

        var actionRequirementsEvaluator: Self.ActionRequirementEvaluator {
            get
        }
        var crossDeviceContextArrivalNotifier: IntelligenceFlowPlannerRuntime.CrossDeviceContextArrivalNotifier {
            get
        }
        var identityChain: [IntelligenceFlowPlannerSupport.Session.SessionIdentityToken] {
            get
        }
        var remoteLiveEntityProvider: (any IntelligenceFlowContext.RemoteLiveEntityProvider)? {
            get
        }
        var runtimeKind: IntelligenceFlowPlannerSupport.Session.RuntimeKind {
            get
        }
        var searchDedupRecorder: IntelligenceFlowPlannerSupport.SearchDedupRecorder? {
            get
        }
        var sessionConfiguration: IntelligenceFlow.SessionConfiguration {
            get
        }
        var sharedToolKitSessionOwner: IntelligenceFlowRuntime.SharedToolKitSessionOwner? {
            get
        }
        var snippetStreamingContextProvider: Self.SnippetStreamingContextProvider {
            get
        }
        var toolbox: IntelligenceFlowPlannerSupport.Toolbox {
            get
        }

        func getToolExecutionSession() -> any IntelligenceFlowPlannerSupport.ToolExecutionInterface
        func plannerToolbox(for: IntelligenceFlowPlannerRuntime.PlannerServiceMode?, locale: Foundation.Locale) throws -> IntelligenceFlowPlannerSupport.PlannerToolbox
        func getFlowToolExecutionSession() async throws -> (any FlowToolTypes.FlowToolsExecutionSessionProtocol)?
        func getBuiltInExecutionSession() async throws -> (any IntelligenceFlowRuntime.BuiltInsExecutionSessionProtocol)?
        func tearDownExecutionSessions()
        func getBuiltInsToolRegistry() -> (any IntelligenceFlowRuntime.BuiltInsToolRegistryProtocol)?
        func getAgentSessionRetrievalService() -> (any IntelligenceFlowRuntime.AgentSessionRetrievalServiceProtocol)?
        func getAgentConfigurationProvider() -> any IntelligenceFlowRuntime.AgentConfigurationProvider
        func getImageCaptureAndRetrievalService() -> IntelligenceFlowPlannerRuntime.DefaultImageCaptureAndRetrievalService
        func getLocationManager() -> any IntelligenceFlowRuntime.LocationManaging
        func getActionValidator() -> (any IntelligenceFlowPlannerRuntime.ActionValidatorProtocol)?
        func getInjectableContentClassifier() -> IntelligenceFlowPlannerRuntime.InjectableContentClassifier?
        func getModelPrewarmCoordinator() -> IntelligenceFlowPlannerRuntime.ModelPrewarmCoordinator?
        func getRoutingCoordinator() -> IntelligenceFlowPlannerRuntime.RoutingCoordinator?
        func getFuzzyShortcutMatchProvider() -> (any IntelligenceFlowPlannerSupport.FuzzyShortcutMatchProvider)?
        func getPlannerDebugConsumer() -> (any IntelligenceFlowPlannerRuntime.PlannerDebugConsumer)?
        func getPlannerConfigurationFeatureProvider() -> any IntelligenceFlowPlannerSupport.PlannerConfigurationFeatureProviding
        func getAgentSessionHandle() -> (any IntelligenceFlowRuntime.AgentSessionHandling)?
        func getConversationFragmentRetrievalService() -> (any IntelligenceFlowPlannerRuntime.ConversationFragmentRetrievalService)?
        func getDeviceAuthenticationStateCalculator() -> any IntelligenceFlowPlannerRuntime.DeviceAuthenticationStateProviding
        func getProvenanceRegistry() -> IntelligenceFlowPlannerRuntime.ProvenanceRuntimeContext.Registry
        func getAttendingStatesService() -> IntelligenceFlowRuntime.AttendingStatesService?
        func getHydrationService() -> any IntelligenceFlowPlannerSupport.HydrationServiceProtocol
        func getAppExclusionService() -> any IntelligenceFlowShared.AppExclusionProviding
        func getEntityService() -> any EntityService.HydratedEntityProviding
        func getRetrieveContextService() -> any IntelligenceFlowPlannerRuntime.RetrieveContextProtocol
        func getConcurrencySafeToolExecutionSession() -> any IntelligenceFlowPlannerSupport.ConcurrencySafeToolExecutionInterface
        func getCallObserverService() -> any IntelligenceFlowRuntime.CallObserverServiceProtocol
        func getSharedToolKitSession() async throws -> any ToolKit.ToolExecutionSession
        func makeFreshToolExecutionSession() async throws -> any IntelligenceFlowPlannerSupport.ToolExecutionInterface
        func getLinkTransport() async throws -> any IntelligenceFlowRuntime.LinkTransportProtocol
        func createSessionAnnotationService() throws -> IntelligenceFlowPlannerRuntime.SessionAnnotationService
    }
}