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
requestDelegationRequestThe delegation request containing the task.
availableAgentsAgentRegistryThe registry of available delegate agents.
cancellationTokenCancellationTokenCancellation token.