AssistantsClient.CreateThread Method

Definition

Overloads

CreateThread(CancellationToken)

Creates a new, empty thread using a default AssistantThreadCreationOptions instance.

CreateThread(AssistantThreadCreationOptions, CancellationToken)

Creates a new thread. Threads contain messages and can be run by assistants.

CreateThread(CancellationToken)

Source:
AssistantsClient.cs

Creates a new, empty thread using a default AssistantThreadCreationOptions instance.

public virtual Azure.Response<Azure.AI.OpenAI.Assistants.AssistantThread> CreateThread (System.Threading.CancellationToken cancellationToken = default);
abstract member CreateThread : System.Threading.CancellationToken -> Azure.Response<Azure.AI.OpenAI.Assistants.AssistantThread>
override this.CreateThread : System.Threading.CancellationToken -> Azure.Response<Azure.AI.OpenAI.Assistants.AssistantThread>
Public Overridable Function CreateThread (Optional cancellationToken As CancellationToken = Nothing) As Response(Of AssistantThread)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

CreateThread(AssistantThreadCreationOptions, CancellationToken)

Source:
AssistantsClient.cs

Creates a new thread. Threads contain messages and can be run by assistants.

public virtual Azure.Response<Azure.AI.OpenAI.Assistants.AssistantThread> CreateThread (Azure.AI.OpenAI.Assistants.AssistantThreadCreationOptions assistantThreadCreationOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateThread : Azure.AI.OpenAI.Assistants.AssistantThreadCreationOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.OpenAI.Assistants.AssistantThread>
override this.CreateThread : Azure.AI.OpenAI.Assistants.AssistantThreadCreationOptions * System.Threading.CancellationToken -> Azure.Response<Azure.AI.OpenAI.Assistants.AssistantThread>
Public Overridable Function CreateThread (assistantThreadCreationOptions As AssistantThreadCreationOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AssistantThread)

Parameters

assistantThreadCreationOptions
AssistantThreadCreationOptions

The details used to create a new assistant thread.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

assistantThreadCreationOptions is null.

Applies to