mongo

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mongo registers MongoDB-backed memory storage for loom-mcp agents. Use clients/mongo to build the low-level client and pass it to NewStore to obtain a runtime.MemoryStore that persists agent transcripts per (agent, run) pair.

Package mongo wires the memory.Store interface to the MongoDB client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store implements memory.Store by delegating to the Mongo client.

func NewStore

func NewStore(client clientsmongo.Client) (*Store, error)

NewStore builds a Mongo-backed memory store using the provided client.

func (*Store) AppendEvents

func (s *Store) AppendEvents(ctx context.Context, agentID, runID string, events ...memory.Event) error

AppendEvents appends the provided events to the run history.

func (*Store) LoadRun

func (s *Store) LoadRun(ctx context.Context, agentID, runID string) (memory.Snapshot, error)

LoadRun loads the snapshot for the given agent/run.

Directories

Path Synopsis
clients
mongo
Package mongo implements the low-level MongoDB client used by the memory store.
Package mongo implements the low-level MongoDB client used by the memory store.

Jump to

Keyboard shortcuts

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