Interface IOpenAIClient

Interface IOpenAIClient

Représente une interface client pour interagir avec l’API OpenAI, en étendant les fonctionnalités de base du client AI.

public interface IOpenAIClient

Méthodes

NomDescription
CancelRunAsync(string, string, CancellationToken?)Annule une exécution existante dans un thread de manière asynchrone.
CancelVectorStoreFileBatchAsync(string, string, CancellationToken?)Annule un lot de fichiers de magasin vectoriel spécifique de manière asynchrone.
CreateAssistantAsync(AssistantCreateRequest, CancellationToken?)Crée un nouvel assistant de manière asynchrone.
CreateCompletionAsync(CompletionCreateRequest, CancellationToken?)Crée une nouvelle complétion de manière asynchrone.
CreateRunAsync(string, RunCreateRequest, CancellationToken?)Crée une exécution dans un thread spécifié de manière asynchrone.
CreateThreadAndRunAsync(RunThreadCreateRequest, CancellationToken?)Crée un thread et une exécution à l’intérieur de celui-ci de manière asynchrone.
CreateThreadAsync(ThreadCreateRequest, CancellationToken?)Crée un nouveau thread de manière asynchrone.
CreateThreadMessageAsync(string, ThreadMessageCreateRequest, CancellationToken?)Crée un nouveau message dans un thread de manière asynchrone.
CreateVectorStoreAndWaitToCompleteAsync(VectorStoreCreateRequest, CancellationToken?)Crée un nouveau magasin vectoriel et attend qu’il soit complété de manière asynchrone.
CreateVectorStoreAsync(VectorStoreCreateRequest, CancellationToken?)Crée un nouveau magasin vectoriel de manière asynchrone.
CreateVectorStoreFileAsync(string, VectorStoreFileCreateRequest, CancellationToken?)Crée un nouveau fichier de magasin vectoriel de manière asynchrone.
CreateVectorStoreFileBatchAsync(string, VectorStoreFileBatchCreateRequest, CancellationToken?)Crée un nouveau lot de fichiers de magasin vectoriel de manière asynchrone.
DeleteAssistantAsync(string, CancellationToken?)Supprime un assistant existant de manière asynchrone.
DeleteFileAsync(string, CancellationToken?)Supprime un fichier spécifique de manière asynchrone.
DeleteThreadAsync(string, CancellationToken?)Supprime un thread existant de manière asynchrone.
DeleteThreadMessageAsync(string, string, CancellationToken?)Supprime un message dans un thread de manière asynchrone.
DeleteVectorStoreAsync(string, CancellationToken?)Supprime un magasin vectoriel de manière asynchrone.
DeleteVectorStoreFileAsync(string, string, CancellationToken?)Supprime un fichier dans un magasin vectoriel de manière asynchrone.
GetAssistantAsync(string, CancellationToken?)Récupère les détails d’un assistant spécifique de manière asynchrone.
GetAssistantsAsync(AssistantListQueryParameters, CancellationToken?)Récupère une liste d’assistants de manière asynchrone.
GetFileAsync(string, CancellationToken?)Récupère les détails d’un fichier spécifique de manière asynchrone.
GetFilesAsync(string, CancellationToken?)Récupère une liste de fichiers de manière asynchrone en fonction de l’objectif spécifié.
GetRunAsync(string, string, CancellationToken?)Récupère les détails d’une exécution spécifique dans un thread de manière asynchrone.
GetRunsAsync(string, RunListQueryParameters, CancellationToken?)Récupère une liste d’exécutions pour un thread spécifié de manière asynchrone.
GetRunStepAsync(string, string, string, CancellationToken?)Récupère les détails d’une étape spécifique dans une exécution de manière asynchrone.
GetRunStepsAsync(string, string, RunStepListQueryParameters, CancellationToken?)Récupère une liste d’étapes pour une exécution spécifique dans un thread de manière asynchrone.
GetThreadAsync(string, CancellationToken?)Récupère les détails d’un thread spécifique de manière asynchrone.
GetThreadMessageAsync(string, string)Récupère les détails d’un message spécifique dans un thread de manière asynchrone.
GetThreadMessagesAsync(string, ThreadMessageListQueryParameters, CancellationToken?)Récupère une liste de messages pour un thread spécifique de manière asynchrone.
GetVectorStoreAsync(string, CancellationToken?)Récupère les détails d’un magasin vectoriel spécifique de manière asynchrone.
GetVectorStoreFileAsync(string, string, CancellationToken?)Récupère les détails d’un fichier spécifique dans un magasin vectoriel de manière asynchrone.
GetVectorStoreFileBatchAsync(string, string, CancellationToken?)Récupère les détails d’un lot de fichiers de magasin vectoriel spécifique de manière asynchrone.
GetVectorStoreFileBatchFilesAsync(string, string, VectorStoreFileBatchFileListQueryParameters, CancellationToken?)Récupère une liste de fichiers dans un lot de fichiers de magasin vectoriel spécifique de manière asynchrone.
GetVectorStoreFilesAsync(string, VectorStoreFileListQueryParameters, CancellationToken?)Récupère une liste de fichiers dans un magasin vectoriel spécifique de manière asynchrone.
GetVectorStoresAsync(VectorStoreListQueryParameters, CancellationToken?)Récupère une liste de magasins vectoriels de manière asynchrone.
ModifyAssistantAsync(string, AssistantModifyRequest, CancellationToken?)Modifie un assistant existant de manière asynchrone.
ModifyRunAsync(string, string, RunModifyRequest, CancellationToken?)Modifie une exécution existante dans un thread de manière asynchrone.
ModifyThreadAsync(string, ThreadModifyRequest, CancellationToken?)Modifie un thread existant de manière asynchrone.
ModifyThreadMessageAsync(string, string, ThreadMessageModifyRequest, CancellationToken?)Modifie un message existant dans un thread de manière asynchrone.
ModifyVectorStoreAsync(string, VectorStoreModifyRequest, CancellationToken?)Modifie un magasin vectoriel existant de manière asynchrone.
RunAndGetAssistantResponseAsync(string, RunCreateRequest, CancellationToken?)Exécute l’assistant avec le threadId spécifié et le runCreateRequest, et obtient de manière asynchrone la réponse de l’assistant.
UploadFileAsync(string, string, byte[], CancellationToken?)Télécharge un fichier de manière asynchrone sur le serveur OpenAI.
WaitForAssistantMessageAsync(string, ThreadMessageListQueryParameters, CancellationToken?)Attend le premier message de l’assistant dans un thread de manière asynchrone.
WaitForRunToCompleteAsync(string, string, CancellationToken?)Attend qu’une exécution soit complétée dans un thread de manière asynchrone.
WaitForThreadMessageToCompleteAsync(string, string)Attend qu’un message de thread spécifique soit complété de manière asynchrone.
WaitForVectorStoreFileToCompleteAsync(string, string)Attend qu’un fichier de magasin vectoriel spécifique soit complété de manière asynchrone.
WaitForVectorStoreToCompleteAsync(string, CancellationToken?)Attend qu’un magasin vectoriel spécifique soit complété de manière asynchrone.

Voir aussi