Compartir a través de


IAgent.NewThreadAsync(CancellationToken) Method

Definition

Creates a new agent chat thread.

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

Parameters

cancellationToken
CancellationToken

A cancellation token

Returns

Applies to