SwiftstructIntelligenceFlowPlannerRuntime

struct IntelligenceFlowPlannerRuntime.ContextPromptRenderer

Members 7

  1. funcstatic foregroundWindowRenderLevel(for: IntelligenceFlowShared.UserContext?, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?) -> IntelligenceFlowShared.LevelOfDetail
  2. fieldlet featureFlagProvider: IntelligenceFlowShared.FeatureFlagProvider
  3. fieldlet mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode
  4. fieldlet preferences: IntelligenceFlowPlannerRuntime.AgenticPlannerPreferences
  5. funcextractForegroundWindowText(from: IntelligenceFlowShared.UserContext, budget: Int) -> [String]
  6. funcrenderContext(for: IntelligenceFlowShared.UserContext, using: IntelligenceFlowPlannerSupport.PromptRenderingContext, imageSourceDecision: IntelligenceFlowPlannerSupport.ImageSourceDecision?, gazeCoordinates: IntelligenceFlowPlannerSupport.GazeCoordinates?) async throws -> IntelligenceFlowPlannerRuntime.ContextPromptRenderer.OnScreenContext
  7. initinit(preferences: IntelligenceFlowPlannerRuntime.AgenticPlannerPreferences, mode: IntelligenceFlowPlannerRuntime.PlannerServiceMode) -> IntelligenceFlowPlannerRuntime.ContextPromptRenderer
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
}