Share via


FoundryToolRuntime.InvokeAsync Method

Definition

Convenience method to invoke a tool directly by its definition.

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

Parameters

tool
Object
cancellationToken
CancellationToken

Returns

Implements

Applies to