IOpenAIClient.ModifyRunAsync
IOpenAIClient.ModifyRunAsync method
Modifies an existing run within a thread asynchronously.
public Task<RunResponse> ModifyRunAsync(string threadId, string runId,
RunModifyRequest assistantModifyRequest, CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread containing the run. |
runId | String | The ID of the run to modify. |
assistantModifyRequest | RunModifyRequest | The request details for modifying the run. |
cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the response from the run modification.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the thread Id is null or empty. |
AIClientException | Thrown when the run Id is null or empty. |
See Also
- class RunResponse
- class RunModifyRequest
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF