FoundryAgent.CreateConversationSessionAsync(CancellationToken) 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.
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.