InferenceChat class
Constructors
-
InferenceChat.new({required Future<
InferenceModelSession> sessionCreator()?, required int maxTokens, int tokenBuffer = 2000})
Properties
-
fullHistory
→ List<
Message> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTokens → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session ↔ InferenceModelSession
-
getter/setter pair
-
sessionCreator
→ Future<
InferenceModelSession> Function()? -
final
- tokenBuffer → int
-
final
Methods
-
addQueryChunk(
Message message) → Future< void> -
clearHistory(
) → Future< void> -
generateChatResponse(
) → Future< String> -
generateChatResponseAsync(
) → Stream< String> -
initSession(
) → Future< void> -
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