DifyRepositoryImpl class

Implemented types

Constructors

DifyRepositoryImpl.new({required Dio dio, required String baseUrl, required String apiKey})

Properties

apiKey String
final
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

Methods

audioToText(String filePath, String userId) Future<Map<String, String>>
override
deleteConversation(String conversationId, String userId) Future<SuccessResponse>
override
getMeta() Future<Map<String, dynamic>>
override
getSuggestedQuestions(String messageId, String userId) Future<List<String>>
override
listConversations({required String userId, String? lastId, int limit = 20, String sortBy = '-updated_at'}) Future<PaginatedResponse<Conversation>>
override
listMessages({required String conversationId, required String userId, int limit = 20, String? lastId}) Future<PaginatedResponse<Message>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renameConversation(String conversationId, ConversationRenameRequest request) Future<Conversation>
override
sendChatMessage(ChatMessageRequest request) Future<ChatMessageResponse>
override
stopGeneration(String messageId, String userId) Future<SuccessResponse>
override
submitMessageFeedback(String messageId, FeedbackRequest feedback) Future<SuccessResponse>
override
textToAudio(String text, String userId, {String? messageId}) Future<List<int>>
override
toString() String
A string representation of this object.
inherited
uploadFile(String filePath, String userId) Future<FileUploadResponse>
override

Operators

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