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
requestDelegationRequestThe delegation request.
availableAgentsAgentRegistryThe registry of available agents.
cancellationTokenCancellationTokenCancellation token (unused).