Table of Contents

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

agent Agent

The 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

name string

The agent name for identification.

agent Agent

The agent to add.

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

agent Agent

The agent to add.

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