memory

package
v1.52.0 Latest Latest
Warning

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

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

Documentation

Overview

Package memory provides the memory_manage and memory_recall MCP tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Toolkit

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

Toolkit implements the memory management toolkit.

func New

func New(name string, store memstore.Store, embedder embedding.Provider) (*Toolkit, error)

New creates a new memory toolkit.

func (*Toolkit) Close

func (*Toolkit) Close() error

Close releases resources.

func (*Toolkit) Connection

func (*Toolkit) Connection() string

Connection returns the connection name for audit logging.

func (*Toolkit) Kind

func (*Toolkit) Kind() string

Kind returns the toolkit kind.

func (*Toolkit) Name

func (t *Toolkit) Name() string

Name returns the toolkit instance name.

func (*Toolkit) RegisterTools

func (t *Toolkit) RegisterTools(s *mcp.Server)

RegisterTools registers memory_manage and memory_recall with the MCP server.

func (*Toolkit) SetQueryProvider

func (*Toolkit) SetQueryProvider(_ query.Provider)

SetQueryProvider is a no-op; memory toolkit does not use query execution.

func (*Toolkit) SetSemanticProvider

func (t *Toolkit) SetSemanticProvider(provider semantic.Provider)

SetSemanticProvider sets the semantic metadata provider for graph traversal.

func (*Toolkit) Tools

func (*Toolkit) Tools() []string

Tools returns the list of tool names.

Jump to

Keyboard shortcuts

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