mem0

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 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 Adapter

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

Adapter adapts the Mem0 API to the MemoryStore interface.

func New

func New(apiKey, projectID string) *Adapter

New creates a new Mem0 adapter.

func (*Adapter) Add

func (a *Adapter) Add(ctx context.Context, req *memory.AddRequest) (*memory.Memory, error)

func (*Adapter) BatchAdd

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

func (*Adapter) ClearAgentMemory

func (a *Adapter) ClearAgentMemory(ctx context.Context, agentID string) error

func (*Adapter) Close

func (a *Adapter) Close() error

func (*Adapter) Delete

func (a *Adapter) Delete(ctx context.Context, id string) error

func (*Adapter) Get

func (a *Adapter) Get(ctx context.Context, id string) (*memory.Memory, error)

func (*Adapter) Health

func (a *Adapter) Health() error

func (*Adapter) Initialize

func (a *Adapter) Initialize(ctx context.Context, config *memory.BackendConfig) error

func (*Adapter) ListByAgent

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

func (*Adapter) Search

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

func (*Adapter) SearchSimilar

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

func (*Adapter) Update

func (a *Adapter) 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