Class WorkflowOrchestrator
Orchestrates the full workflow pipeline:
- Classify prompt (is this a workflow?)
- Match against catalog (do we have a workflow for this?)
- Optionally advise from history before execution
- If match found, execute via WorkflowBridge
- If no match, return "planning needed" result
- Optionally ingest the run result into the history graph
public sealed class WorkflowOrchestrator : IWorkflowOrchestrator
- Inheritance
-
WorkflowOrchestrator
- Implements
- Inherited Members
Constructors
WorkflowOrchestrator(IPromptIntentClassifier, IWorkflowMatcher, IWorkflowBridge, IWorkflowHistoryAdvisor?, IWorkflowHistoryObserver?)
public WorkflowOrchestrator(IPromptIntentClassifier classifier, IWorkflowMatcher matcher, IWorkflowBridge bridge, IWorkflowHistoryAdvisor? historyAdvisor = null, IWorkflowHistoryObserver? historyObserver = null)
Parameters
classifierIPromptIntentClassifiermatcherIWorkflowMatcherbridgeIWorkflowBridgehistoryAdvisorIWorkflowHistoryAdvisorhistoryObserverIWorkflowHistoryObserver
Methods
ProcessAsync(string, AgentWorkflowData?, CancellationToken)
public Task<WorkflowOrchestratorResult> ProcessAsync(string prompt, AgentWorkflowData? data = null, CancellationToken ct = default)
Parameters
promptstringdataAgentWorkflowDatactCancellationToken