Share via


PersistentAgentsClient.CreateThreadAndRunAsync Method

Definition

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.ThreadRun>> CreateThreadAndRunAsync(string assistantId, Azure.AI.Agents.Persistent.ThreadAndRunOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateThreadAndRunAsync : string * Azure.AI.Agents.Persistent.ThreadAndRunOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.ThreadRun>>
override this.CreateThreadAndRunAsync : string * Azure.AI.Agents.Persistent.ThreadAndRunOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.ThreadRun>>
Public Overridable Function CreateThreadAndRunAsync (assistantId As String, options As ThreadAndRunOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ThreadRun))

Parameters

assistantId
String
cancellationToken
CancellationToken

Returns

Applies to