Share via


CopilotStudioAgent.GetNewThread Method

Definition

Overloads

GetNewThread()

Creates a new conversation thread that is compatible with this agent.

GetNewThread(String)

Get a new AgentThread instance using an existing conversation id, to continue that conversation.

GetNewThread()

Creates a new conversation thread that is compatible with this agent.

public override sealed Microsoft.Agents.AI.AgentThread GetNewThread();
override this.GetNewThread : unit -> Microsoft.Agents.AI.AgentThread
Public Overrides NotOverridable Function GetNewThread () As AgentThread

Returns

A new AgentThread instance ready for use with this agent.

Applies to

GetNewThread(String)

Get a new AgentThread instance using an existing conversation id, to continue that conversation.

public Microsoft.Agents.AI.AgentThread GetNewThread(string conversationId);
override this.GetNewThread : string -> Microsoft.Agents.AI.AgentThread
Public Function GetNewThread (conversationId As String) As AgentThread

Parameters

conversationId
String

The conversation id to continue.

Returns

A new AgentThread instance.

Applies to