memory

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package memory provides a compiled skill for semantic memory operations.

Index

Constants

View Source
const (
	// SkillName is the name of the memory skill.
	SkillName = "memory"

	// DefaultCollection is the default memory collection name.
	DefaultCollection = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Embedder computes vector embeddings for semantic search.
	Embedder vector.Embedder
}

Config configures the memory skill.

type Skill

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

Skill implements compiled.Skill for memory operations.

func NewSkill

func NewSkill(cfg Config) *Skill

NewSkill creates a new memory skill.

func (*Skill) Close

func (s *Skill) Close() error

Close implements compiled.Skill.

func (*Skill) Description

func (s *Skill) Description() string

Description implements compiled.Skill.

func (*Skill) Init

func (s *Skill) Init(ctx context.Context) error

Init implements compiled.Skill.

func (*Skill) Manager

func (s *Skill) Manager() *memory.Manager

Manager returns the memory manager.

func (*Skill) Name

func (s *Skill) Name() string

Name implements compiled.Skill.

func (*Skill) SetStorage

func (s *Skill) SetStorage(store kvs.Store)

SetStorage implements compiled.StorageAware.

func (*Skill) Tools

func (s *Skill) Tools() []skill.Tool

Tools implements compiled.Skill.

Jump to

Keyboard shortcuts

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