Udostępnij za pośrednictwem


AgentBuilder.BuildAsync(CancellationToken) Method

Definition

Create a IAgent instance.

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Experimental.Agents.IAgent> BuildAsync (System.Threading.CancellationToken cancellationToken = default);
member this.BuildAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Experimental.Agents.IAgent>
Public Function BuildAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IAgent)

Parameters

cancellationToken
CancellationToken

A cancellation token

Returns

A new IAgent instance.

Applies to