Table of Contents

Namespace LMKit.Agents.Delegation

Classes

AfterDelegationEventArgs

Event arguments for the AfterDelegation event.

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

BeforeDelegationEventArgs

Event arguments for the BeforeDelegation event.

Allows handlers to inspect, modify, or cancel delegation requests before execution.

DelegateTool

A tool that enables an agent to delegate tasks to other specialized agents.

When registered, this tool allows the model to request handoff to another agent from the available delegates registry. The tool handles execution routing and returns the delegate's response.

DelegationManager

Manages delegation between agents with configurable routing and execution policies.

Provides a centralized way to handle agent-to-agent task delegation with support for custom routing, timeout handling, and event notifications.

DelegationRequest

Represents a request to delegate a task to another agent.

Created when an agent decides to hand off a task to a more specialized agent from its delegates registry.

DelegationResult

Represents the result of a delegated task execution.

Returned by a delegate agent after processing a DelegationRequest.

NameBasedDelegationRouter

A simple delegation router that selects agents by exact name match.

This is the default router used when no custom routing logic is needed.

Interfaces

IDelegationRouter

Defines a contract for routing delegation requests to appropriate agents.

Implementations can provide custom logic for selecting which agent should handle a delegation request based on task content, agent capabilities, or other criteria.