次の方法で共有


AssistantsClient.CreateThreadAsync Method

Definition

Overloads

CreateThreadAsync(CancellationToken)

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

CreateThreadAsync(AssistantThreadCreationOptions, CancellationToken)

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

CreateThreadAsync(CancellationToken)

Source:
AssistantsClient.cs

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

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

CreateThreadAsync(AssistantThreadCreationOptions, CancellationToken)

Source:
AssistantsClient.cs

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

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