FoundryAgent.CreateConversationSessionAsync(CancellationToken) Method

Definition

Creates a server-side conversation session that appears in the Foundry Project UI.

public System.Threading.Tasks.Task<Microsoft.Agents.AI.ChatClientAgentSession> CreateConversationSessionAsync(System.Threading.CancellationToken cancellationToken = default);
member this.CreateConversationSessionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.AI.ChatClientAgentSession>
Public Function CreateConversationSessionAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChatClientAgentSession)

Parameters

cancellationToken
CancellationToken

A token to monitor for cancellation requests.

Returns

A ChatClientAgentSession linked to the newly created server-side conversation.

Applies to