Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is a SQL-backed session memory store.
func New ¶
func New( ctx context.Context, db *sql.DB, dialect Dialect, embedder intent.Embedder, migrate bool, ) (*Memory, error)
New opens a Memory store over db. migrate must be true on first use to create tables.
func (*Memory) ForSession ¶
func (m *Memory) ForSession(sessionID string) intent.SessionMemory
Click to show internal directories.
Click to hide internal directories.