SimpleMemory class final
Simple memory for storing context or other bits of information that shouldn't ever change between prompts.
- Implemented types
Constructors
-
SimpleMemory({Map<
String, dynamic> memories = const {}}) -
Simple memory for storing context or other bits of information that
shouldn't ever change between prompts.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
memories
→ Map<
String, dynamic> -
The memories to store.
final
-
memoryKeys
→ Set<
String> -
Input keys this memory class will load dynamically to the prompt.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
Clear memory contents.
override
-
loadMemoryVariables(
[MemoryInputValues values = const {}]) → Future< MemoryVariables> -
Returns key-value pairs given the MemoryInputValues.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveContext(
{required MemoryInputValues inputValues, required MemoryOutputValues outputValues}) → Future< void> -
Save the context of this model run to memory.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited