Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryWithID ¶
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.
Click to show internal directories.
Click to hide internal directories.