Documentation
¶
Index ¶
- type Adapter
- func (a *Adapter) Add(ctx context.Context, req *memory.AddRequest) (*memory.Memory, error)
- func (a *Adapter) BatchAdd(ctx context.Context, reqs []*memory.AddRequest) ([]*memory.Memory, error)
- func (a *Adapter) ClearAgentMemory(ctx context.Context, agentID string) error
- func (a *Adapter) Close() error
- func (a *Adapter) Delete(ctx context.Context, id string) error
- func (a *Adapter) Get(ctx context.Context, id string) (*memory.Memory, error)
- func (a *Adapter) Health() error
- func (a *Adapter) Initialize(ctx context.Context, config *memory.BackendConfig) error
- func (a *Adapter) ListByAgent(ctx context.Context, agentID string, opts *memory.ListOptions) ([]*memory.Memory, error)
- func (a *Adapter) Search(ctx context.Context, query string, opts *memory.SearchOptions) ([]*memory.Memory, error)
- func (a *Adapter) SearchSimilar(ctx context.Context, embedding []float64, opts *memory.SearchOptions) ([]*memory.Memory, error)
- func (a *Adapter) Update(ctx context.Context, id string, req *memory.UpdateRequest) error
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 (*Adapter) ClearAgentMemory ¶
func (*Adapter) Initialize ¶
func (*Adapter) ListByAgent ¶
func (*Adapter) SearchSimilar ¶
Click to show internal directories.
Click to hide internal directories.