memorytools

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package memorytools provides portable memory tool bodies for project and user scopes. Stores opt into Inspect/Forget/Undo by implementing tool.MemoryLifecycleStore; the original Remember/Recall/Search family remains available over every tool.MemoryStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectTools

func ProjectTools(store tool.MemoryStore) []tool.Tool

ProjectTools returns the project-scoped family.

func Register

func Register(cat *tool.Catalog, store tool.MemoryStore, scope Scope) error

Register adds the applicable family to cat.

func Tools

func Tools(store tool.MemoryStore, scope Scope) []tool.Tool

Tools returns the three base tools and, when store implements MemoryLifecycleStore, the three lifecycle tools for scope.

func UserTools

func UserTools(store tool.MemoryStore) []tool.Tool

UserTools returns the user-scoped family.

Types

type Scope

type Scope string

Scope identifies which independently-scoped store a tool family represents.

const (
	// ScopeProject selects the project memory store.
	ScopeProject Scope = "project"
	// ScopeUser selects the user memory store.
	ScopeUser Scope = "user"
)

Jump to

Keyboard shortcuts

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