Udostępnij za pośrednictwem


AgentPlugin.InvokeAsync Method

Definition

Overloads

InvokeAsync(String, CancellationToken)

Invoke plugin with user input

InvokeAsync(String, KernelArguments, CancellationToken)

Invoke plugin with user input

InvokeAsync(String, CancellationToken)

Invoke plugin with user input

public System.Threading.Tasks.Task<string> InvokeAsync (string input, System.Threading.CancellationToken cancellationToken = default);
member this.InvokeAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function InvokeAsync (input As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

input
String

The user input

cancellationToken
CancellationToken

A cancel token

Returns

The agent response

Applies to

InvokeAsync(String, KernelArguments, CancellationToken)

Invoke plugin with user input

public System.Threading.Tasks.Task<string> InvokeAsync (string input, Microsoft.SemanticKernel.KernelArguments? arguments, System.Threading.CancellationToken cancellationToken = default);
member this.InvokeAsync : string * Microsoft.SemanticKernel.KernelArguments * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function InvokeAsync (input As String, arguments As KernelArguments, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

input
String

The user input

arguments
KernelArguments

The arguments

cancellationToken
CancellationToken

A cancel token

Returns

The agent response

Applies to