ConversationRepository class

Handles the flow of asking and streaming the response.

Constructors

ConversationRepository({required CompletionModel completion, required Conversation conversation, required ThreadsModel threads, void onError(CompletionException exception, int remainingRetries)?, void onJsonComplete(Map<String, dynamic>)?, int retries = 2})

Properties

completion CompletionModel
final
conversation Conversation
final
hashCode int
The hash code for this object.
no setterinherited
onError → void Function(CompletionException exception, int remainingRetries)?
final
onJsonComplete → void Function(Map<String, dynamic>)?
final
retries int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threads ThreadsModel
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prompt(String message, {required void onChunk(Message message, String chunk), void onFirstMessageCreated()?}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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