Constructor WorkflowOrchestrator
WorkflowOrchestrator(WorkflowDefinition, Func<string, int?, Agent>, Func<string, ITool>)
Initializes a new instance.
public WorkflowOrchestrator(WorkflowDefinition definition, Func<string, int?, Agent> resolveAgent = null, Func<string, ITool> resolveTool = null)
Parameters
definitionWorkflowDefinitionThe workflow.
resolveAgentFunc<string, int?, Agent>Turns an agent name and optional revision into the agent to run; null when it does not exist. Optional when AgentStepRunner runs the agent steps.
resolveToolFunc<string, ITool>Turns a tool name into the tool to call; null when it does not exist. Optional when the workflow calls no tool.
Exceptions
- ArgumentNullException
Thrown when
definitionis null.