SwiftclassWorkflowEditor
GenerativeExperienceCoordinator
class WorkflowEditor.GenerativeExperienceCoordinator
Members 129
- func
static chicletMetric(min: CoreGraphics.CGFloat, max: CoreGraphics.CGFloat, forAvailableHeight: CoreGraphics.CGFloat) -> CoreGraphics.CGFloat - func
static didCreateEmptyStateShortcut() -> () - func
static isAvailable(in: WorkflowEditor.GenerativeExperienceCoordinator.EditorContext) -> Bool - func
static isCompactLandscapePhone(in: UITraitCollection) -> Bool - func
static reapplySmartPromptStates(_: [WFSmartPromptState], toInsertedActions: [WFAction], database: WFDatabase, reference: WFWorkflowReference) async -> () - func
static shouldBeginInGenerative(in: WorkflowEditor.GenerativeExperienceCoordinator.EditorContext) -> Bool - func
static shouldCreateEmptyStateShortcut() -> Bool - func
static updatePreferredEditorMode(isInGenerativeExperience: Bool) -> () - var
static var defaultSuggestions: [String] { get } - var
static var isReadyForUse: Bool { get } - var
static var isTripleColumnEnabled: Bool { get } - var
static var sampleCellActions: [WorkflowEditor.SampleCellAction] { get } - deinit
deinit - field
var _canDescribeUndo: Combine.Published<Bool> - field
var _isGenerating: Combine.Published<Bool> - field
var agentSession: ShortcutsAgent.AgentSession<ShortcutsAgent.DescribeAShortcutAgent>?+0x28 - field
lazy var agentVersionID: String? - field
var allReceivedUpdates: [ShortcutsAgent.AgentStep<ShortcutsAgent.DescribeAShortcutAgent>.Update] - field
let backgroundNotificationIdentifier: String - field
var backgroundNotificationObservers: [NSObject] - field
var callIndex: Int - field
var currentStep: ShortcutsAgent.AgentStep<ShortcutsAgent.DescribeAShortcutAgent>? - field
var currentStepEventObservationTask: Task<(), Never>? - field
var currentTurnCallSucceeded: Bool - field
var currentTurnErrorChars: Set<ShortcutsAgent.DaSErrorCode> - field
var currentTurnInputCharacterLength: Int - field
var currentTurnOutputCharacterLength: Int - field
var currentTurnResponseType: WorkflowEditor.DescribeModelCallResponseType - field
weak var delegate: WorkflowEditor.GenerativeExperienceCoordinatorDelegate?+0x10 - field
var describeUndoStack: [WorkflowEditor.GenerativeExperienceCoordinator.DescribeUndoEntry] - field
var didEnterStillPhase: Bool - field
var didFireAppOpened: Bool - field
var disambiguationAnsweredWithText: Bool - field
var disambiguationCallback: ((ShortcutsAgent.PickUserChoice) -> ())? - field
var disambiguationStateStore: WorkflowEditor.ParameterStateStore? - field
var hadCreationError: Bool - field
var hasEditorChangesSinceLastGeneration: Bool - field
var hasSavedContent: Bool - field
var iconCancellable: Combine.AnyCancellable? - field
var isRestoringFromDescribeUndo: Bool - field
var isSuppressingThinking: Bool - field
var isTerminated: Bool - field
var lastLatencyChangeDate: Foundation.Date? - field
var lastSentMessage: String? - field
var lastSummarySyncHash: Int - field
var latencyGroupID: String? - field
var latencyMinHoldTimer: NSTimer? - field
var latencyOpeningTimer: NSTimer? - field
var latencyStillTimer: NSTimer? - field
var nameCancellable: Combine.AnyCancellable? - field
var numberOfEditorSwitches: Int - field
var pendingLatencyStage: WorkflowEditor.GenerativeExperienceCoordinator.LatencyStage? - field
var permissionsPromptCallback: (() -> ())? - field
var preTurnSnapshot: WorkflowEditor.WorkflowSnapshot? - field
let presentationContext: WorkflowEditor.EditorPresentationContext - field
let runner: WorkflowEditor.EditorShortcutRunner - field
var sessionErrorChars: Set<ShortcutsAgent.DaSErrorCode> - field
let sessionID: String - field
var sessionLatencyMaxMs: Int - field
var sessionLatencySumMs: Int - field
var sessionLatencyTurnCount: Int - field
var shownLatencyStages: Set<WorkflowEditor.GenerativeExperienceCoordinator.LatencyStage> - field
var systemQuestionCount: Int - field
var systemTurnCount: Int - field
let telemetrySubFeature: String - field
var testRunCount: Int - field
var testRunErrorChars: Set<Character> - field
var toolEmbeddingIndexingObservationToken: Int32 - field
var turnFindEntitiesPairCounts: [WorkflowEditor.ActionParameterIdentifier : Int] - field
let uiSession: WorkflowEditor.GenerativeConversationSession+0x20 - field
let workflow: WFWorkflow - field
let workflowEditStatus: WorkflowEditor.GenerativeExperienceCoordinator.WorkflowEditStatus - field
var workflowRunnerLifecycleCancellable: Combine.AnyCancellable? - field
var workflowRunnerStateCancellable: Combine.AnyCancellable? - func
abandonmentTypeForTesting() -> Int - func
append(WorkflowEditor.GenerativeConversationSessionItem) -> () - func
appendDisambiguationAlarmTime() -> () - func
appendDisambiguationEntityOptions() -> () - func
appendDisambiguationFilter() -> () - func
appendDisambiguationMultiSelect() -> () - func
appendDisambiguationSlider() -> () - func
appendDisambiguationSystemPicker() -> () - func
appendDisambiguationTextOptions() -> () - func
appendInitialState(title: String?, suggestions: [String]?) -> () - func
appendShortcutSummary(icon: WFWorkflowIcon?, text: String?, steps: [String]?, messageForUser: String?, suggestedQuery: String?) -> () - func
appendShortcutSummary(for: WFWorkflow, icon: WFIcon?, tintColor: WFColor?, messageForUser: String?, suggestedQuery: String?, isUpdatingPreviousSummary: Bool) -> () - func
appendTextResponse(text: String?, showsOpenEditorButton: Bool, requiresThirdPartyAction: Bool, suggestedQuery: String?) -> () - func
appendThinkingState(title: String?) -> String - func
appendUserRequest(text: String?) -> () - func
creationMetricsSnapshot() -> WorkflowEditor.GenerativeExperienceCoordinator.CreationMetricsSnapshot - func
currentCallType() -> Int - func
diagnosticSnapshot() -> WorkflowEditor.GenerativeExperienceCoordinator.DiagnosticSnapshot - func
editorDidEnterGenerativeExperience() -> () - func
emitShortcutCreation(isEditingNewWorkflow: Bool, defaultEntryPoint: WorkflowEditor.ShortcutCreationEntryPoint, userEntryPoint: WorkflowEditor.ShortcutCreationEntryPoint) -> () - func
fileRadar(title: String) throws -> () - func
finishDisambiguation(with: ShortcutsAgent.PickUserChoice) -> () - func
finishPermissionsPrompt() -> () - func
handleAgentEventForErrorClassification(ShortcutsAgent.AgentSession<ShortcutsAgent.DescribeAShortcutAgent>.Event) -> () - func
performDescribeUndo() -> () - func
recordEditorSwitch() -> () - func
recordSessionErrorChars<A where A: Sequence, A.Element == ShortcutsAgent.DaSErrorCode>(A) -> () - func
recordTurnLatency(Int) -> () - func
resetDescribeModelCallTurnStateForTesting() -> () - func
resetWorkflowEditStatus() -> () - func
send(message: String) async throws -> () - func
setCallIndexForTesting(Int) -> () - func
setDisambiguationPendingForTesting(Bool) -> () - func
setIsGeneratingForTesting(Bool) -> () - func
setShortcutCreationStateForTesting(sessionErrorChars: Set<ShortcutsAgent.DaSErrorCode>?, hadCreationError: Bool?, testRunCount: Int?, testRunErrorChars: Set<Character>?, numberOfEditorSwitches: Int?, hasSavedContent: Bool?) -> () - func
showInitialState() -> () - func
streamSampleItems() -> () - func
terminate() -> () - func
trigger(_: WorkflowKit.WFNewTrigger, parameterStateDidChangeForKey: String) -> () - func
trigger(_: WorkflowKit.WFNewTrigger, supplementalParameterValueDidChangeForKey: String) -> () - func
update(streamID: String, token: String) -> () - func
workflowActionsDidChange(WFWorkflow) -> () - func
workflowConnectorStateDidChange(WFWorkflow) -> () - func
workflowInputActionDidChange(WFWorkflow) -> () - func
workflowUnifiedAutomationTriggersDidChange(WFWorkflow) -> () - init
WorkflowEditor.GenerativeExperienceCoordinator.__allocating_init(workflow: WFWorkflow, runner: WorkflowEditor.EditorShortcutRunner, presentationContext: WorkflowEditor.EditorPresentationContext, subFeature: WorkflowEditor.DescribeSubFeature) -> WorkflowEditor.GenerativeExperienceCoordinator - var
var $canDescribeUndo: Combine.Published<Bool>.Publisher { get } - var
var $isGenerating: Combine.Published<Bool>.Publisher { get } - var
var canDescribeUndo: Bool { get } - var
var currentBaseModel: String? { get } - var
final var currentTurnErrorCharsForTesting: Set<ShortcutsAgent.DaSErrorCode> { get } - var
var isGenerating: Bool { get } - var
final var isShowingInitialState: Bool { get } - var
var isSummarizing: Bool { get set } - var
var sessionAverageLatencyMs: Int { get }
Header
class GenerativeExperienceCoordinator: __C.WFWorkflowEditingObserver, __C.WFTriggerEventObserver { struct DiagnosticSnapshot { let uiSession: WorkflowEditor.GenerativeConversationSession let workflow: __C.WFWorkflow let agentUpdates: [ShortcutsAgent.AgentStep<ShortcutsAgent.DescribeAShortcutAgent>.Update] let startingWorkflow: __C.WFWorkflow? let isEditMode: Swift.Bool } enum DismissalConfirmationAlert { static var continueButtonTitle: Swift.String { get } static var message: Swift.String { get } static var stopButtonTitle: Swift.String { get } static var title: Swift.String { get } static func makeAlert(completion: @escaping (_: Swift.Bool) -> ()) -> __C.WFAlert } struct CreationMetricsSnapshot { let sessionID: Swift.String let numberOfUserTurns: Swift.Int let numberOfSystemTurns: Swift.Int let numberOfSystemQuestions: Swift.Int let numberOfTestRuns: Swift.Int let numberOfEditorSwitches: Swift.Int let dasActionCount: Swift.Int let editorActionCount: Swift.Int let creationErrorCode: Swift.String? let hadCreationError: Swift.Bool let testRunErrorCode: Swift.String? let baseModel: Swift.String let sessionAverageLatencyMs: Swift.Int let sessionMaxLatencyMs: Swift.Int let abandonmentType: Swift.Int } enum EditorContext { case shortcutsApp case homeApp init(home: Swift.AnyObject?) } enum LatencyStage { case findingEntity(Swift.String) case opening case findingActions case findingAutomations case assembling case stillAssembling case stillPuttingTogether case stillFinalizing } struct DescribeUndoEntry { let preGenerationWorkflow: __C.WFWorkflow let postGenerationWorkflow: __C.WFWorkflow let hadEditsBeforeGeneration: Swift.Bool } struct ConfigurationAttachment { enum CodingKeys { case agentConfiguration case toolRetrievalRootModelIdentifier case databaseVersion case toolkitDatabaseVersion } let agentConfiguration: ShortcutsAgent.AgentConfiguration let toolRetrievalRootModelIdentifier: Swift.String? let databaseVersion: Swift.String? let toolkitDatabaseVersion: Swift.String? } actor WorkflowEditStatus { var hasUserEdits: Swift.Bool var isGenerating: Swift.Bool var unownedExecutor: Swift.UnownedSerialExecutor { get } deinit } weak var delegate: (any WorkflowEditor.GenerativeExperienceCoordinatorDelegate)? let uiSession: WorkflowEditor.GenerativeConversationSession var agentSession: ShortcutsAgent.AgentSession<ShortcutsAgent.DescribeAShortcutAgent>? var currentStep: ShortcutsAgent.AgentStep<ShortcutsAgent.DescribeAShortcutAgent>? let workflow: __C.WFWorkflow var lastSentMessage: Swift.String? var allReceivedUpdates: [ShortcutsAgent.AgentStep<ShortcutsAgent.DescribeAShortcutAgent>.Update] var disambiguationCallback: ((_: ShortcutsAgent.PickUserChoice) -> ())? var permissionsPromptCallback: (() -> ())? var disambiguationStateStore: WorkflowEditor.ParameterStateStore? var disambiguationAnsweredWithText: Swift.Bool let workflowEditStatus: WorkflowEditor.GenerativeExperienceCoordinator.WorkflowEditStatus let backgroundNotificationIdentifier: Swift.String var describeUndoStack: [WorkflowEditor.GenerativeExperienceCoordinator.DescribeUndoEntry] var hasEditorChangesSinceLastGeneration: Swift.Bool var isRestoringFromDescribeUndo: Swift.Bool var lastSummarySyncHash: Swift.Int let runner: WorkflowEditor.EditorShortcutRunner var workflowRunnerStateCancellable: Combine.AnyCancellable? var workflowRunnerLifecycleCancellable: Combine.AnyCancellable? var iconCancellable: Combine.AnyCancellable? var nameCancellable: Combine.AnyCancellable? var latencyOpeningTimer: __C.NSTimer? var latencyStillTimer: __C.NSTimer? var latencyMinHoldTimer: __C.NSTimer? var latencyGroupID: Swift.String? var shownLatencyStages: Swift.Set<WorkflowEditor.GenerativeExperienceCoordinator.LatencyStage> var lastLatencyChangeDate: Foundation.Date? var pendingLatencyStage: WorkflowEditor.GenerativeExperienceCoordinator.LatencyStage? var didEnterStillPhase: Swift.Bool var isSuppressingThinking: Swift.Bool let telemetrySubFeature: Swift.String var didFireAppOpened: Swift.Bool var hasSavedContent: Swift.Bool let sessionID: Swift.String var callIndex: Swift.Int var sessionLatencySumMs: Swift.Int var sessionLatencyMaxMs: Swift.Int var sessionLatencyTurnCount: Swift.Int var systemTurnCount: Swift.Int var systemQuestionCount: Swift.Int var sessionErrorChars: Swift.Set<ShortcutsAgent.DaSErrorCode> var currentTurnErrorChars: Swift.Set<ShortcutsAgent.DaSErrorCode> var preTurnSnapshot: WorkflowEditor.WorkflowSnapshot? var currentTurnInputCharacterLength: Swift.Int var currentTurnOutputCharacterLength: Swift.Int var currentTurnResponseType: WorkflowEditor.DescribeModelCallResponseType var currentTurnCallSucceeded: Swift.Bool var turnFindEntitiesPairCounts: [WorkflowEditor.ActionParameterIdentifier : Swift.Int] var currentStepEventObservationTask: Swift.Task<(), Swift.Never>? var hadCreationError: Swift.Bool var testRunCount: Swift.Int var testRunErrorChars: Swift.Set<Swift.Character> var numberOfEditorSwitches: Swift.Int var isTerminated: Swift.Bool let presentationContext: WorkflowEditor.EditorPresentationContext lazy var agentVersionID: Swift.String? var toolEmbeddingIndexingObservationToken: Swift.Int32 var backgroundNotificationObservers: [any __C.NSObject] func diagnosticSnapshot() -> WorkflowEditor.GenerativeExperienceCoordinator.DiagnosticSnapshot @Combine.Published var isGenerating: Swift.Bool { get } @Combine.Published var canDescribeUndo: Swift.Bool { get } var isSummarizing: Swift.Bool { get set } var currentBaseModel: Swift.String? { get } var sessionAverageLatencyMs: Swift.Int { get } func recordTurnLatency(_: Swift.Int) func recordSessionErrorChars<A>(_: A) where A: Swift.Sequence, A.Element == ShortcutsAgent.DaSErrorCode func recordEditorSwitch() func creationMetricsSnapshot() -> WorkflowEditor.GenerativeExperienceCoordinator.CreationMetricsSnapshot init(workflow: __C.WFWorkflow, runner: WorkflowEditor.EditorShortcutRunner, presentationContext: WorkflowEditor.EditorPresentationContext, subFeature: WorkflowEditor.DescribeSubFeature) func terminate() func send(message: Swift.String) async throws func showInitialState() func finishDisambiguation(with: ShortcutsAgent.PickUserChoice) func finishPermissionsPrompt() func fileRadar(title: Swift.String) throws func update(streamID: Swift.String, token: Swift.String) func append(_: WorkflowEditor.GenerativeConversationSessionItem) func appendShortcutSummary(for: __C.WFWorkflow, icon: __C.WFIcon?, tintColor: __C.WFColor?, messageForUser: Swift.String?, suggestedQuery: Swift.String?, isUpdatingPreviousSummary: Swift.Bool) final var currentTurnErrorCharsForTesting: Swift.Set<ShortcutsAgent.DaSErrorCode> { get } final var isShowingInitialState: Swift.Bool { get } final func editorDidEnterGenerativeExperience() final func resetWorkflowEditStatus() final func currentCallType() -> Swift.Int final func appendUserRequest(text: Swift.String?) final func streamSampleItems() final func appendInitialState(title: Swift.String?, suggestions: [Swift.String]?) final func appendTextResponse(text: Swift.String?, showsOpenEditorButton: Swift.Bool, requiresThirdPartyAction: Swift.Bool, suggestedQuery: Swift.String?) final func appendThinkingState(title: Swift.String?) -> Swift.String final func performDescribeUndo() final func emitShortcutCreation(isEditingNewWorkflow: Swift.Bool, defaultEntryPoint: WorkflowEditor.ShortcutCreationEntryPoint, userEntryPoint: WorkflowEditor.ShortcutCreationEntryPoint) func appendShortcutSummary(icon: __C.WFWorkflowIcon?, text: Swift.String?, steps: [Swift.String]?, messageForUser: Swift.String?, suggestedQuery: Swift.String?) final func setCallIndexForTesting(_: Swift.Int) @objc func workflowActionsDidChange(_: __C.WFWorkflow) final func abandonmentTypeForTesting() -> Swift.Int final func setIsGeneratingForTesting(_: Swift.Bool) final func appendDisambiguationFilter() final func appendDisambiguationSlider() @objc func workflowInputActionDidChange(_: __C.WFWorkflow) final func appendDisambiguationAlarmTime() final func appendDisambiguationMultiSelect() final func appendDisambiguationTextOptions() @objc func workflowConnectorStateDidChange(_: __C.WFWorkflow) final func appendDisambiguationSystemPicker() final func appendDisambiguationEntityOptions() final func setDisambiguationPendingForTesting(_: Swift.Bool) final func setShortcutCreationStateForTesting(sessionErrorChars: Swift.Set<ShortcutsAgent.DaSErrorCode>?, hadCreationError: Swift.Bool?, testRunCount: Swift.Int?, testRunErrorChars: Swift.Set<Swift.Character>?, numberOfEditorSwitches: Swift.Int?, hasSavedContent: Swift.Bool?) final func handleAgentEventForErrorClassification(_: ShortcutsAgent.AgentSession<ShortcutsAgent.DescribeAShortcutAgent>.Event) final func resetDescribeModelCallTurnStateForTesting() @objc func workflowUnifiedAutomationTriggersDidChange(_: __C.WFWorkflow) @objc func trigger(_: WorkflowKit.WFNewTrigger, parameterStateDidChangeForKey: Swift.String) @objc func trigger(_: WorkflowKit.WFNewTrigger, supplementalParameterValueDidChangeForKey: Swift.String) static var defaultSuggestions: [Swift.String] { get } static var isReadyForUse: Swift.Bool { get } static var isTripleColumnEnabled: Swift.Bool { get } static var sampleCellActions: [WorkflowEditor.SampleCellAction] { get } static func shouldBeginInGenerative(in: WorkflowEditor.GenerativeExperienceCoordinator.EditorContext) -> Swift.Bool static func updatePreferredEditorMode(isInGenerativeExperience: Swift.Bool) static func isAvailable(in: WorkflowEditor.GenerativeExperienceCoordinator.EditorContext) -> Swift.Bool static func chicletMetric(min: CoreGraphics.CGFloat, max: CoreGraphics.CGFloat, forAvailableHeight: CoreGraphics.CGFloat) -> CoreGraphics.CGFloat static func isCompactLandscapePhone(in: __C.UITraitCollection) -> Swift.Bool static func reapplySmartPromptStates(_: [__C.WFSmartPromptState], toInsertedActions: [__C.WFAction], database: __C.WFDatabase, reference: __C.WFWorkflowReference) async static func didCreateEmptyStateShortcut() static func shouldCreateEmptyStateShortcut() -> Swift.Bool deinit }