Table of Contents

Constructor WorkflowOrchestrator

Namespace
LMKit.Agents.Workflows
Assembly
LM-Kit.NET.dll

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

definition WorkflowDefinition

The workflow.

resolveAgent Func<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.

resolveTool Func<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 definition is null.

Share