Table of Contents

Method SelectAgentAsync

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

SelectAgentAsync(DelegationRequest, AgentRegistry, CancellationToken)

Selects an agent by matching the target name in the request.

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

Parameters

request DelegationRequest

The delegation request.

availableAgents AgentRegistry

The registry of available agents.

cancellationToken CancellationToken

Cancellation token (unused).

Returns

Task<Agent>

The matching agent, or null if not found.