agentmemory

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package agentmemory attaches Orb's bounded persistent memory to a plain agent.Agent. The coding-agent plugin delegates to the same runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(ctx context.Context, target *agent.Agent, store memorysdk.Store) error

Attach loads a frozen snapshot and adds memory's tools to a plain Agent. Call it before the agent begins processing prompts.

Types

type Runtime

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

Runtime owns one frozen memory snapshot and the four memory tools. Different runtimes never share a lock; callers must pass a tenant-scoped, concurrent Store when multiple sessions share the same durable backend.

func New

func New(store memorysdk.Store) (*Runtime, error)

New creates a memory runtime over one tenant-scoped Store.

func (*Runtime) Load

func (runtime *Runtime) Load(ctx context.Context) error

Load freezes the current bounded profile for the next agent session.

func (*Runtime) SystemPrompt

func (runtime *Runtime) SystemPrompt(base string) string

SystemPrompt appends the frozen profile to base.

func (*Runtime) Tools

func (runtime *Runtime) Tools() []agent.AgentTool

Tools returns remember, recall, replace, and forget bound to the runtime.

Jump to

Keyboard shortcuts

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