AssistantRepository class

Inheritance

Constructors

AssistantRepository.new({required Dio dio, required String assistantId, required String threadId})

Properties

addsPreviousMessagesToThread bool
no setteroverride
addsResponseAutomatically bool
Indicates the class adds the response message to the current thread.
no setteroverride
assistantId String
final
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadId String
final
url String
no setter

Methods

fetch({List<Message>? previousMessages}) Future<Message>
override
fetchStream({List<Message>? previousMessages, int retries = 2, FutureOr<void> onError(CompletionException error, int retriesRemaning)?, void onJsonComplete(Map<String, dynamic> chunk)?}) Stream<String>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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