AgentBuilder.GetAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.