Table of Contents

Method SelectAgentAsync

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

SelectAgentAsync(DelegationRequest, AgentRegistry, CancellationToken)

Selects the most appropriate agent to handle the given request.

Task<Agent> SelectAgentAsync(DelegationRequest request, AgentRegistry availableAgents, CancellationToken cancellationToken = default)

Parameters

request DelegationRequest

The delegation request containing the task.

availableAgents AgentRegistry

The registry of available delegate agents.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<Agent>

The selected agent, or null if no suitable agent is found.