memory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory interface {
	// Store saves a learning
	Store(ctx context.Context, learning agent.Learning) error

	// Recall retrieves learnings matching a pattern or context
	Recall(ctx context.Context, pattern string) ([]agent.Learning, error)

	// RecordDecision records a decision and its outcome
	RecordDecision(ctx context.Context, decision agent.Decision) error

	// GetDecisionHistory retrieves decision history
	GetDecisionHistory(ctx context.Context, limit int) ([]agent.Decision, error)

	// UpdateLearningConfidence adjusts confidence based on application success
	UpdateLearningConfidence(ctx context.Context, learningID string, successful bool) error
}

Memory provides learning and recall capabilities for the agent

func NewMemory

func NewMemory() Memory

NewMemory creates a new memory system

Jump to

Keyboard shortcuts

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