IOpenAIClient.GetRunStepAsync

Méthode IOpenAIClient.GetRunStepAsync

Récupère les détails d’une étape spécifique dans un run de manière asynchrone.

public Task<RunStepResponse> GetRunStepAsync(string threadId, string runId, string runStepId, 
    CancellationToken? cancellationToken = default)
ParamètreTypeDescription
threadIdStringL’ID du thread contenant le run.
runIdStringL’ID du run contenant l’étape.
runStepIdStringL’ID de l’étape du run à récupérer.
cancellationTokenNullable`1Un 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 les détails de l’étape du run.

Exceptions

exceptioncondition
AIClientExceptionLancé lorsque l’ID du thread est nul ou vide.
AIClientExceptionLancé lorsque l’ID du run est nul ou vide.
AIClientExceptionLancé lorsque l’ID de l’étape du run est nul ou vide.

Voir aussi