sqlite

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is the SQLite + sqlite-vec memory backend.

func New

func New(dsn string) *Store

New creates a new SQLite memory store.

func (*Store) Add

func (s *Store) Add(ctx context.Context, req *memory.AddRequest) (*memory.Memory, error)

func (*Store) BatchAdd

func (s *Store) BatchAdd(ctx context.Context, reqs []*memory.AddRequest) ([]*memory.Memory, error)

func (*Store) ClearAgentMemory

func (s *Store) ClearAgentMemory(ctx context.Context, agentID string) error

func (*Store) Close

func (s *Store) Close() error

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, id string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, id string) (*memory.Memory, error)

func (*Store) Health

func (s *Store) Health() error

func (*Store) Initialize

func (s *Store) Initialize(ctx context.Context, config *memory.BackendConfig) error

func (*Store) ListByAgent

func (s *Store) ListByAgent(ctx context.Context, agentID string, opts *memory.ListOptions) ([]*memory.Memory, error)

func (*Store) Search

func (s *Store) Search(ctx context.Context, query string, opts *memory.SearchOptions) ([]*memory.Memory, error)

func (*Store) SearchSimilar

func (s *Store) SearchSimilar(ctx context.Context, embedding []float64, opts *memory.SearchOptions) ([]*memory.Memory, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, id string, req *memory.UpdateRequest) error

Jump to

Keyboard shortcuts

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