OpenAIClient.WaitForRunToCompleteAsync
Méthode OpenAIClient.WaitForRunToCompleteAsync
Attend qu’une exécution se termine dans un thread de manière asynchrone.
public Task<RunResponse> WaitForRunToCompleteAsync(string threadId, string runId,
CancellationToken? cancellationToken = default)
Paramètre | Type | Description |
---|---|---|
threadId | String | L’ID du thread contenant l’exécution. |
runId | String | L’ID de l’exécution à surveiller jusqu’à la fin. |
cancellationToken | Nullable`1 | Un jeton pour annuler l’opération. |
Valeur de retour
Une tâche qui représente l’opération asynchrone. Le résultat de la tâche contient le statut final de l’exécution.
Exceptions
exception | condition |
---|---|
AIClientException | Lancé lorsque l’ID du thread est nul ou vide. |
AIClientException | Lancé lorsque l’ID de l’exécution est nul ou vide. |
Voir aussi
- classe RunResponse
- classe OpenAIClient
- espace de noms Aspose.Pdf.AI
- assembly Aspose.PDF