-
Notifications
You must be signed in to change notification settings - Fork 0
How To Checkpointing
Devrajsinh Gohil edited this page Aug 30, 2026
·
1 revision
AgentMesh integrates with memory and database checkpointers for persistence and session management.
from langgraph.checkpoint.memory import MemorySaver
import agentmesh_adapter
saver = MemorySaver()
app = agentmesh_adapter.compile(builder, checkpointer=saver)
config = {"configurable": {"thread_id": "thread-42"}}
# First Turn
app.invoke({"messages": ["Hello"]}, config=config)
# Second Turn (loads previous state automatically)
app.invoke({"messages": ["What did I say?"]}, config=config)
# Inspect Checkpoint
current_state = app.get_state(config)
print("Persisted State:", current_state)For multi-node production persistence, AgentMesh C++ engine includes PostgresStateRepository backed by libpq:
- Transactional write-ahead snapshots after every wave.
- Crash recovery resumes orphaned workflows in <4.8 ms.
- Zero in-flight data loss on
SIGKILL.\n
Getting Started
How-To Guides
- Compile a Graph
- Annotated Reducers
- Parallel Fanout
- Send() Map-Reduce
- Command() Routing
- Nested Subgraphs
- Async & Streaming
- Checkpointing & State
- Financial Swarm Example
Architecture
- System Overview
- C++ Engine Internals
- O(1) Scheduler
- Dual-Tier Graph
- Persistence & WAL
- Zero-Copy Pybind Bridge
- SOLID Design Principles
API Reference
Benchmarks
Contributing