Method AutoDelegateAsync
- Namespace
- LMKit.Agents.Delegation
- Assembly
- LM-Kit.NET.dll
AutoDelegateAsync(string, string, CancellationToken)
Attempts to automatically route a task to the best available agent.
public Task<DelegationResult> AutoDelegateAsync(string task, string context = null, CancellationToken cancellationToken = default)
Parameters
taskstringThe task to delegate.
contextstringOptional context.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<DelegationResult>
The delegation result, or a failure if no suitable agent is found.