memorytypes

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryWithID

type EntryWithID struct {
	ID        int
	Content   *genai.Content
	Author    string
	Timestamp time.Time
}

EntryWithID represents a memory entry with its database row ID.

type ExtendedMemoryService

type ExtendedMemoryService interface {
	MemoryService
	SearchWithID(ctx context.Context, req *memory.SearchRequest) ([]EntryWithID, error)
	UpdateMemory(ctx context.Context, appName, userID string, entryID int, newContent string) error
	DeleteMemory(ctx context.Context, appName, userID string, entryID int) error
}

ExtendedMemoryService extends MemoryService with update, delete, and ID-aware search.

type MemoryService

type MemoryService interface {
	AddSession(ctx context.Context, s session.Session) error
	Search(ctx context.Context, req *memory.SearchRequest) (*memory.SearchResponse, error)
}

MemoryService defines the base interface for a memory backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL