Event BeforeAgentExecution
- Namespace
- LMKit.Agents.Orchestration
- Assembly
- LM-Kit.NET.dll
Fired before each agent execution.
public event EventHandler<BeforeAgentExecutionEventArgs> BeforeAgentExecution
Returns
- EventHandler<BeforeAgentExecutionEventArgs>
- Fired before each agent execution.
Examples
Inspecting or modifying input before any orchestrator step runs:
pipeline.BeforeAgentExecution += (sender, e) =>
{
Console.WriteLine($"Step {e.Context.CurrentStep}: {e.Agent.Identity?.Persona}");
// e.ModifiedInput / e.SkipAgent(...) can be used to alter the run.
};