memory

package
v0.7.32 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package memory manages per-agent memory notes stored as markdown files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager provides read and write access to human-editable memory notes.

func New

func New() *Manager

New creates a Manager.

func (*Manager) AppendNote

func (m *Manager) AppendNote(poolID, note string) error

AppendNote adds a new bullet line to the notes file for a pool.

func (*Manager) GetNotes

func (m *Manager) GetNotes(poolID string) (string, error)

GetNotes reads the human-editable markdown notes file for a pool. Returns an empty string (no error) when the file does not yet exist.

func (*Manager) SetNotes

func (m *Manager) SetNotes(poolID string, content string) error

SetNotes replaces the entire notes file content for a pool.

Jump to

Keyboard shortcuts

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