IOpenAIClient.ModifyThreadAsync
IOpenAIClient.ModifyThreadAsync method
Modifies an existing thread asynchronously.
public Task<ThreadResponse> ModifyThreadAsync(string threadId,
ThreadModifyRequest threadModifyRequest, CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread to modify. |
threadModifyRequest | ThreadModifyRequest | The request object containing modification details. |
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 thread modification.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the thread Id is null or empty. |
See Also
- class ThreadResponse
- class ThreadModifyRequest
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF