IResilientTaskHandler<TInput,TOutput>.RunAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes one attempt using the current task context.
public System.Threading.Tasks.Task<TOutput> RunAsync(Azure.AI.AgentServer.Core.Tasks.TaskContext<TInput> context, System.Threading.CancellationToken cancellationToken = default);
abstract member RunAsync : Azure.AI.AgentServer.Core.Tasks.TaskContext<'Input> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Output>
Public Function RunAsync (context As TaskContext(Of TInput), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TOutput)
Parameters
- context
- TaskContext<TInput>
The context for the current task turn.
- cancellationToken
- CancellationToken
The cooperative cancellation token for this attempt.
Returns
The typed task result.