Table of Contents

Class AfterDelegationEventArgs

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

Event arguments for the AfterDelegation event.

Provides the result of a completed delegation for logging, monitoring, or post-processing.

public sealed class AfterDelegationEventArgs : EventArgs
Inheritance
AfterDelegationEventArgs
Inherited Members

Examples

Logging the worker's response after every delegation:

using LMKit.Agents.Delegation;

var delegateTool = supervisor.EnableDelegation(); delegateTool.AfterDelegation += (sender, e) => { if (e.Result.Success) Console.WriteLine($"[{e.Result.AgentName}] {e.Result.Response}"); else Console.Error.WriteLine($"[{e.Result.AgentName}] FAILED: {e.Result.Error}"); };

Constructors

AfterDelegationEventArgs(DelegationResult)

Initializes a new instance of the AfterDelegationEventArgs class.

Properties

Result

Gets the delegation result.

Share