Share via


IFoundryToolInvoker.InvokeAsync Method

Definition

Invokes the tool with the given arguments.

public System.Threading.Tasks.Task<object?> InvokeAsync(System.Collections.Generic.IDictionary<string,object?>? arguments = default, System.Threading.CancellationToken cancellationToken = default);
abstract member InvokeAsync : System.Collections.Generic.IDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Public Function InvokeAsync (Optional arguments As IDictionary(Of String, Object) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

arguments
IDictionary<String,Object>

The arguments to pass to the tool invocation, or null for no arguments.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task representing the asynchronous operation. The task result contains the tool invocation result.

Applies to