CopilotStudioAgent.CreateSessionAsync(String) 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.
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.