Table of Contents

Class WorkflowOrchestrator

Namespace
JD.AI.Workflows
Assembly
JD.AI.Workflows.dll

Orchestrates the full workflow pipeline:

  1. Classify prompt (is this a workflow?)
  2. Match against catalog (do we have a workflow for this?)
  3. Optionally advise from history before execution
  4. If match found, execute via WorkflowBridge
  5. If no match, return "planning needed" result
  6. 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

classifier IPromptIntentClassifier
matcher IWorkflowMatcher
bridge IWorkflowBridge
historyAdvisor IWorkflowHistoryAdvisor
historyObserver IWorkflowHistoryObserver

Methods

ProcessAsync(string, AgentWorkflowData?, CancellationToken)

public Task<WorkflowOrchestratorResult> ProcessAsync(string prompt, AgentWorkflowData? data = null, CancellationToken ct = default)

Parameters

prompt string
data AgentWorkflowData
ct CancellationToken

Returns

Task<WorkflowOrchestratorResult>