Interface IOpenAIClient

IOpenAIClient-Schnittstelle

Stellt eine Client-Schnittstelle für die Interaktion mit der OpenAI-API dar, die grundlegende AI-Client-Funktionalitäten erweitert.

public interface IOpenAIClient

Methoden

NameBeschreibung
CancelRunAsync(string, string, CancellationToken?)Kündigt einen bestehenden Lauf innerhalb eines Threads asynchron.
CancelVectorStoreFileBatchAsync(string, string, CancellationToken?)Kündigt einen bestimmten Vektorspeicher-Dateibatch asynchron.
CreateAssistantAsync(AssistantCreateRequest, CancellationToken?)Erstellt einen neuen Assistenten asynchron.
CreateCompletionAsync(CompletionCreateRequest, CancellationToken?)Erstellt eine neue Vervollständigung asynchron.
CreateRunAsync(string, RunCreateRequest, CancellationToken?)Erstellt einen Lauf innerhalb eines bestimmten Threads asynchron.
CreateThreadAndRunAsync(RunThreadCreateRequest, CancellationToken?)Erstellt einen Thread und einen Lauf darin asynchron.
CreateThreadAsync(ThreadCreateRequest, CancellationToken?)Erstellt einen neuen Thread asynchron.
CreateThreadMessageAsync(string, ThreadMessageCreateRequest, CancellationToken?)Erstellt eine neue Nachricht innerhalb eines Threads asynchron.
CreateVectorStoreAndWaitToCompleteAsync(VectorStoreCreateRequest, CancellationToken?)Erstellt einen neuen Vektorspeicher und wartet asynchron auf dessen Abschluss.
CreateVectorStoreAsync(VectorStoreCreateRequest, CancellationToken?)Erstellt einen neuen Vektorspeicher asynchron.
CreateVectorStoreFileAsync(string, VectorStoreFileCreateRequest, CancellationToken?)Erstellt eine neue Vektorspeicher-Datei asynchron.
CreateVectorStoreFileBatchAsync(string, VectorStoreFileBatchCreateRequest, CancellationToken?)Erstellt einen neuen Vektorspeicher-Dateibatch asynchron.
DeleteAssistantAsync(string, CancellationToken?)Löscht einen bestehenden Assistenten asynchron.
DeleteFileAsync(string, CancellationToken?)Löscht eine bestimmte Datei asynchron.
DeleteThreadAsync(string, CancellationToken?)Löscht einen bestehenden Thread asynchron.
DeleteThreadMessageAsync(string, string, CancellationToken?)Löscht eine Nachricht innerhalb eines Threads asynchron.
DeleteVectorStoreAsync(string, CancellationToken?)Löscht einen Vektorspeicher asynchron.
DeleteVectorStoreFileAsync(string, string, CancellationToken?)Löscht eine Datei innerhalb eines Vektorspeichers asynchron.
GetAssistantAsync(string, CancellationToken?)Ruft Details eines bestimmten Assistenten asynchron ab.
GetAssistantsAsync(AssistantListQueryParameters, CancellationToken?)Ruft eine Liste von Assistenten asynchron ab.
GetFileAsync(string, CancellationToken?)Ruft Details einer bestimmten Datei asynchron ab.
GetFilesAsync(string, CancellationToken?)Ruft eine Liste von Dateien asynchron basierend auf dem angegebenen Zweck ab.
GetRunAsync(string, string, CancellationToken?)Ruft Details eines bestimmten Laufs innerhalb eines Threads asynchron ab.
GetRunsAsync(string, RunListQueryParameters, CancellationToken?)Ruft eine Liste von Läufen für einen bestimmten Thread asynchron ab.
GetRunStepAsync(string, string, string, CancellationToken?)Ruft Details eines bestimmten Schrittes innerhalb eines Laufs asynchron ab.
GetRunStepsAsync(string, string, RunStepListQueryParameters, CancellationToken?)Ruft eine Liste von Schritten für einen bestimmten Lauf innerhalb eines Threads asynchron ab.
GetThreadAsync(string, CancellationToken?)Ruft Details eines bestimmten Threads asynchron ab.
GetThreadMessageAsync(string, string, CancellationToken?)Ruft Details einer bestimmten Nachricht innerhalb eines Threads asynchron ab.
GetThreadMessagesAsync(string, ThreadMessageListQueryParameters, CancellationToken?)Ruft eine Liste von Nachrichten für einen bestimmten Thread asynchron ab.
GetVectorStoreAsync(string, CancellationToken?)Ruft Details eines bestimmten Vektorspeichers asynchron ab.
GetVectorStoreFileAsync(string, string, CancellationToken?)Ruft Details einer bestimmten Datei innerhalb eines Vektorspeichers asynchron ab.
GetVectorStoreFileBatchAsync(string, string, CancellationToken?)Ruft Details eines bestimmten Vektorspeicher-Dateibatches asynchron ab.
GetVectorStoreFileBatchFilesAsync(string, string, VectorStoreFileBatchFileListQueryParameters, CancellationToken?)Ruft eine Liste von Dateien innerhalb eines bestimmten Vektorspeicher-Dateibatches asynchron ab.
GetVectorStoreFilesAsync(string, VectorStoreFileListQueryParameters, CancellationToken?)Ruft eine Liste von Dateien innerhalb eines bestimmten Vektorspeichers asynchron ab.
GetVectorStoresAsync(VectorStoreListQueryParameters, CancellationToken?)Ruft eine Liste von Vektorspeichern asynchron ab.
ModifyAssistantAsync(string, AssistantModifyRequest, CancellationToken?)Ändert einen bestehenden Assistenten asynchron.
ModifyRunAsync(string, string, RunModifyRequest, CancellationToken?)Ändert einen bestehenden Lauf innerhalb eines Threads asynchron.
ModifyThreadAsync(string, ThreadModifyRequest, CancellationToken?)Ändert einen bestehenden Thread asynchron.
ModifyThreadMessageAsync(string, string, ThreadMessageModifyRequest, CancellationToken?)Ändert eine bestehende Nachricht innerhalb eines Threads asynchron.
ModifyVectorStoreAsync(string, VectorStoreModifyRequest, CancellationToken?)Ändert einen bestehenden Vektorspeicher asynchron.
RunAndGetAssistantResponseAsync(string, RunCreateRequest, CancellationToken?)Führt den Assistenten mit der angegebenen threadId und runCreateRequest aus und erhält asynchron die Antwort des Assistenten.
UploadFileAsync(string, string, byte[], CancellationToken?)Lädt eine Datei asynchron auf den OpenAI-Server hoch.
WaitForAssistantMessageAsync(string, ThreadMessageListQueryParameters, CancellationToken?)Wartet asynchron auf die erste Nachricht des Assistenten innerhalb eines Threads.
WaitForRunToCompleteAsync(string, string, CancellationToken?)Wartet asynchron auf den Abschluss eines Laufs innerhalb eines Threads.
WaitForThreadMessageToCompleteAsync(string, string)Wartet asynchron auf den Abschluss einer bestimmten Thread-Nachricht.
WaitForVectorStoreFileToCompleteAsync(string, string)Wartet asynchron auf den Abschluss einer bestimmten Vektorspeicher-Datei.
WaitForVectorStoreToCompleteAsync(string, CancellationToken?)Wartet asynchron auf den Abschluss eines bestimmten Vektorspeichers.

Siehe auch