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
agentAgentThe 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
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
agentAgentThe agent for this stage.
inputTransformerFunc<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.