Method ExecuteAsync
- Namespace
- LMKit.Agents.Resilience
- Assembly
- LM-Kit.NET.dll
ExecuteAsync(string, AgentExecutionOptions, CancellationToken)
Executes with the configured agents.
public Task<AgentExecutionResult> ExecuteAsync(string input, AgentExecutionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputstringThe input prompt.
optionsAgentExecutionOptionsOptional execution options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<AgentExecutionResult>
The execution result from the first successful agent.