PersistentAgentsClient.CreateThreadAndRunAsync 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.
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
- options
- ThreadAndRunOptions
- cancellationToken
- CancellationToken