Share via


CopilotStudioAgent.CreateSessionAsync(String) Method

Definition

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

public System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.AgentSession> CreateSessionAsync(string conversationId);
override this.CreateSessionAsync : string -> System.Threading.Tasks.ValueTask<Microsoft.Agents.AI.AgentSession>
Public Function CreateSessionAsync (conversationId As String) As ValueTask(Of AgentSession)

Parameters

conversationId
String

The conversation id to continue.

Returns

A new AgentSession instance.

Applies to