SwiftstructIntelligenceFlowPlannerRuntime
ContextPromptRenderer
struct IntelligenceFlowPlannerRuntime.ContextPromptRenderer
Members 7
- func
static foregroundWindowRenderLevel(for: IntelligenceFlowShared.UserContext?, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?) -> IntelligenceFlowShared.LevelOfDetail - field
let featureFlagProvider: IntelligenceFlowShared.FeatureFlagProvider - field
let mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode - field
let preferences: IntelligenceFlowPlannerRuntime.AgenticPlannerPreferences - func
extractForegroundWindowText(from: IntelligenceFlowShared.UserContext, budget: Int) -> [String] - func
renderContext(for: IntelligenceFlowShared.UserContext, using: IntelligenceFlowPlannerSupport.PromptRenderingContext, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?, gazeCoordinates: IntelligenceFlowPlannerSupport.GazeCoordinates?) async throws -> IntelligenceFlowPlannerRuntime.ContextPromptRenderer.OnScreenContext - init
init(preferences: IntelligenceFlowPlannerRuntime.AgenticPlannerPreferences, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode) -> IntelligenceFlowPlannerRuntime.ContextPromptRenderer
Header
struct ContextPromptRenderer { struct OnScreenContext { enum CodingKeys { case focusedApp case openedApps case liveEntities case visibleEntities case selectedEntities case onscreenText case previousSessionContext case salientEntity } var focusedApp: IntelligenceFlowPlannerSupport.GMSValue? var openedApps: [IntelligenceFlowPlannerSupport.GMSValue]? var liveEntities: [IntelligenceFlowPlannerSupport.GMSValue]? var visibleEntities: [IntelligenceFlowPlannerSupport.GMSValue]? var selectedEntities: [IntelligenceFlowPlannerSupport.GMSValue]? var onscreenText: [Swift.String]? var previousSessionContext: Swift.String? var salientEntity: IntelligenceFlowPlannerSupport.GMSValue? init(focusedApp: IntelligenceFlowPlannerSupport.GMSValue?, openedApps: [IntelligenceFlowPlannerSupport.GMSValue]?, liveEntities: [IntelligenceFlowPlannerSupport.GMSValue]?, visibleEntities: [IntelligenceFlowPlannerSupport.GMSValue]?, selectedEntities: [IntelligenceFlowPlannerSupport.GMSValue]?, onscreenText: [Swift.String]?, previousSessionContext: Swift.String?, salientEntity: IntelligenceFlowPlannerSupport.GMSValue?) } let preferences: IntelligenceFlowPlannerRuntime.AgenticPlannerPreferences let mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode let featureFlagProvider: any IntelligenceFlowShared.FeatureFlagProvider init(preferences: IntelligenceFlowPlannerRuntime.AgenticPlannerPreferences, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode) func renderContext(for: IntelligenceFlowShared.UserContext, using: any IntelligenceFlowPlannerSupport.PromptRenderingContext, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?, gazeCoordinates: IntelligenceFlowPlannerSupport.GazeCoordinates?) async throws -> IntelligenceFlowPlannerRuntime.ContextPromptRenderer.OnScreenContext func extractForegroundWindowText(from: IntelligenceFlowShared.UserContext, budget: Swift.Int) -> [Swift.String] static func foregroundWindowRenderLevel(for: IntelligenceFlowShared.UserContext?, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?) -> IntelligenceFlowShared.LevelOfDetail }