Handles, you guessed it! Memory! - It has both in-session and persistent memories (datastore)
{ Role: string, Content: string }
MaxEntriesExceeded
once MaxEntries
exceedsMaxEntriesExceeded
once MaxEntries
exceedsGorillaMemory.new(MaxEntries: number, SessionId: string | number)
In-session:
GorillaMemory:Read(): table
GorillaMemory:Update(Input: string, Role: string)
Note: This method checks if MaxEntries has been exceeded and fires the MaxEntriesExceeded signal if it has.
GorillaMemory:Clear()
Persistent:
GorillaMemory:ReadPersistent(): table
GorillaMemory:UpdatePersistent(Input: string, Role: string)
{ Role, Content }
entry.Note: This method checks if MaxEntries has been exceeded and fires the MaxEntriesExceeded signal if it has.
GorillaMemory:ClearPersistent()