Method AddAgent
- Namespace
- LMKit.Agents.Orchestration
- Assembly
- LM-Kit.NET.dll
AddAgent(Agent)
Adds an agent to the parallel execution set.
public ParallelOrchestrator AddAgent(Agent agent)
Parameters
agentAgentThe agent to add.
Returns
- ParallelOrchestrator
This orchestrator for method chaining.
AddAgent(string, Agent)
Adds a named agent to the parallel execution set.
public ParallelOrchestrator AddAgent(string name, Agent agent)
Parameters
Returns
- ParallelOrchestrator
This orchestrator for method chaining.
AddAgent(Agent, Func<string, OrchestrationContext, string>)
Adds an agent with a custom input for this agent.
public ParallelOrchestrator AddAgent(Agent agent, Func<string, OrchestrationContext, string> inputProvider)
Parameters
agentAgentThe agent to add.
inputProviderFunc<string, OrchestrationContext, string>Function to generate the input for this specific agent. Receives the original input and context.
Returns
- ParallelOrchestrator
This orchestrator for method chaining.