Table of Contents

Method AddStage

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

AddStage(Agent)

Adds an agent as the next stage in the pipeline.

public PipelineOrchestrator AddStage(Agent agent)

Parameters

agent Agent

The agent to add.

Returns

PipelineOrchestrator

This orchestrator for method chaining.

AddStage(string, Agent)

Adds a named stage to the pipeline.

public PipelineOrchestrator AddStage(string name, Agent agent)

Parameters

name string

The stage name.

agent Agent

The agent for this stage.

Returns

PipelineOrchestrator

This orchestrator for method chaining.

AddStage(Agent, Func<string, OrchestrationContext, string>)

Adds a stage with an input transformer.

public PipelineOrchestrator AddStage(Agent agent, Func<string, OrchestrationContext, string> inputTransformer)

Parameters

agent Agent

The agent for this stage.

inputTransformer Func<string, OrchestrationContext, string>

Function to transform the input before passing to the agent. Receives the current input and context.

Returns

PipelineOrchestrator

This orchestrator for method chaining.