memstore

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter exposes memory.Store through the local provider's contract-typed backend.

func New

func New(store *memory.Store) *Adapter

New wraps a memory Store for the bundled local provider.

func (*Adapter) ApplyDecision

func (a *Adapter) ApplyDecision(ctx context.Context, decision memcontract.Decision) error

ApplyDecision persists and applies a controller decision through Store.

func (*Adapter) EnsureDirs

func (a *Adapter) EnsureDirs() error

EnsureDirs creates the underlying memory directories.

func (*Adapter) ForAgent

func (a *Adapter) ForAgent(
	workspaceID string,
	agentName string,
	tier memcontract.AgentTier,
) local.Backend

ForAgent returns a backend bound to the requested agent memory tier.

func (*Adapter) ForWorkspace

func (a *Adapter) ForWorkspace(workspaceRoot string) local.Backend

ForWorkspace returns a backend bound to the requested workspace memory root.

func (*Adapter) List

func (a *Adapter) List(scope memcontract.Scope) ([]memcontract.Header, error)

List returns memory headers for one scope.

func (*Adapter) LoadPromptIndex

func (a *Adapter) LoadPromptIndex(
	scope memcontract.Scope,
) (content string, truncated bool, err error)

LoadPromptIndex returns the prompt-safe MEMORY.md content for a scope.

func (*Adapter) Recall

Recall delegates to Store.Recall.

Jump to

Keyboard shortcuts

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