memory

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package memory provides in-memory checkpoint storage implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryCheckpointStore

func NewMemoryCheckpointStore() store.CheckpointStore

NewMemoryCheckpointStore creates a new in-memory checkpoint store

Types

type MemoryCheckpointStore

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

MemoryCheckpointStore provides in-memory checkpoint storage

func (*MemoryCheckpointStore) Clear

func (m *MemoryCheckpointStore) Clear(_ context.Context, executionID string) error

Clear implements CheckpointStore interface

func (*MemoryCheckpointStore) Delete

func (m *MemoryCheckpointStore) Delete(_ context.Context, checkpointID string) error

Delete implements CheckpointStore interface

func (*MemoryCheckpointStore) GetLatestByThread added in v0.8.2

func (m *MemoryCheckpointStore) GetLatestByThread(_ context.Context, threadID string) (*store.Checkpoint, error)

GetLatestByThread returns the latest checkpoint for a thread_id

func (*MemoryCheckpointStore) List

func (m *MemoryCheckpointStore) List(_ context.Context, executionID string) ([]*store.Checkpoint, error)

List implements CheckpointStore interface

func (*MemoryCheckpointStore) ListByThread added in v0.8.2

func (m *MemoryCheckpointStore) ListByThread(_ context.Context, threadID string) ([]*store.Checkpoint, error)

ListByThread returns all checkpoints for a specific thread_id

func (*MemoryCheckpointStore) Load

func (m *MemoryCheckpointStore) Load(_ context.Context, checkpointID string) (*store.Checkpoint, error)

Load implements CheckpointStore interface

func (*MemoryCheckpointStore) Save

func (m *MemoryCheckpointStore) Save(_ context.Context, checkpoint *store.Checkpoint) error

Save implements CheckpointStore interface

Jump to

Keyboard shortcuts

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