Table of Contents

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

task string

The task to delegate.

context string

Optional context.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<DelegationResult>

The delegation result, or a failure if no suitable agent is found.