Class BeforeDelegationEventArgs
- Namespace
- LMKit.Agents.Delegation
- Assembly
- LM-Kit.NET.dll
Event arguments for the BeforeDelegation event.
Allows handlers to inspect, modify, or cancel delegation requests before execution.
public sealed class BeforeDelegationEventArgs : EventArgs
- Inheritance
-
BeforeDelegationEventArgs
- Inherited Members
Constructors
- BeforeDelegationEventArgs(DelegationRequest)
Initializes a new instance of the BeforeDelegationEventArgs class.
Properties
- Cancel
Gets or sets a value indicating whether to cancel the delegation.
- CancelReason
Gets or sets the reason for cancellation.
Only used when Cancel is
true.
- Request
Gets or sets the delegation request.
Handlers can replace this with a modified request.
Methods
- CancelDelegation(string)
Cancels the delegation with the specified reason.