AssistantsService class

Constructors

AssistantsService({required String baseUrl, required bool secure})

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secure bool
final

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

Operators

operator ==(Object other) bool
The equality operator.
inherited