Class BeforeAgentExecutionEventArgs
- Namespace
- LMKit.Agents.Orchestration
- Assembly
- LM-Kit.NET.dll
Event arguments for before agent execution in orchestration.
Allows handlers to modify the input or skip the agent entirely.
public sealed class BeforeAgentExecutionEventArgs : EventArgs
- Inheritance
-
BeforeAgentExecutionEventArgs
- Inherited Members
Constructors
- BeforeAgentExecutionEventArgs(Agent, string, OrchestrationContext)
Initializes a new instance of the BeforeAgentExecutionEventArgs class.
Properties
- Agent
Gets the agent that is about to execute.
- Context
Gets the orchestration context.
- ModifiedInput
Gets or sets modified input to use instead of the original.
Set this to change the input before the agent executes. Leave
nullto use the original input.
- OriginalInput
Gets the original input for the agent.
- Skip
Gets or sets a value indicating whether to skip this agent.
- SkipReason
Gets or sets the reason for skipping.
Methods
- SkipAgent(string)
Skips the agent execution with an optional reason.