Udostępnij za pośrednictwem


AgentBuilder.GetAsync(String, CancellationToken) Method

Definition

Create a IAgent instance.

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

Parameters

agentId
String

The agent id to retrieve

cancellationToken
CancellationToken

A cancellation token

Returns

A new IAgent instance.

Applies to