Share via


AssistantsClient.UpdateRun Method

Definition

Modifies an existing thread run.

public virtual Azure.Response<Azure.AI.OpenAI.Assistants.ThreadRun> UpdateRun (string threadId, string runId, System.Collections.Generic.IDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateRun : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.OpenAI.Assistants.ThreadRun>
override this.UpdateRun : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.OpenAI.Assistants.ThreadRun>
Public Overridable Function UpdateRun (threadId As String, runId As String, Optional metadata As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ThreadRun)

Parameters

threadId
String

The ID of the thread associated with the specified run.

runId
String

The ID of the run to modify.

metadata
IDictionary<String,String>

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

threadId or runId is null.

threadId or runId is an empty string, and was expected to be non-empty.

Applies to