AssistantsService class
Methods
-
createAssistant({required String apiKey, required String organizationId, required CreateGptAssistantRequest request})
→ Future<GptAssistant>
-
Create an assistant with a model and instructions.
-
createAssistantFile({required String apiKey, required String organizationId, required String assistantId, required CreateAssistantFileRequest request})
→ Future<AssistantFile>
-
Create an assistant file by attaching a File to an assistant.
-
deleteAssistant({required String apiKey, required String organizationId, required String assistantId})
→ Future<void>
-
Delete an assistant.
-
deleteAssistantFile({required String apiKey, required String organizationId, required String assistantId, required String fileId})
→ Future<void>
-
-
listAssistantFiles({required String apiKey, required String organizationId, required String assistantId, required GetGptListRequest request})
→ Future<List<AssistantFile>>
-
Returns a list of assistant files.
-
listAssistants({required String apiKey, required String organizationId, required GetGptListRequest request})
→ Future<List<GptAssistant>>
-
Returns a list of assistants.
-
modifyAssistant({required String apiKey, required String organizationId, required String assistantId, required ModifyGptAssistantRequest request})
→ Future<GptAssistant>
-
Modifies an assistant.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
retrieveAssistant({required String apiKey, required String organizationId, required String assistantId})
→ Future<GptAssistant>
-
Retrieves an assistant.
-
retrieveAssistantFile({required String apiKey, required String organizationId, required String assistantId, required String fileId})
→ Future<AssistantFile>
-
Retrieves an AssistantFile.
-
toString()
→ String
-
A string representation of this object.
inherited