AgentBuilder.BuildAsync(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> 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.