Skip to content

Commit b1675a5

Browse files
danielmillerpclaude
andcommitted
feat: replace direct-Postgres checkpointer with HTTP proxy
Replace AsyncPostgresSaver with HttpCheckpointSaver that proxies all LangGraph checkpoint operations through the agentex backend API. Agents no longer need DATABASE_URL or a direct Postgres connection. - Add _http_checkpointer.py: BaseCheckpointSaver subclass using httpx - Update checkpointer.py: create_checkpointer() returns HttpCheckpointSaver - Remove langgraph-checkpoint-postgres and psycopg[binary] deps - Add langgraph-checkpoint (base types only, no DB driver) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a447e5b commit b1675a5

File tree

5 files changed

+672
-8
lines changed

5 files changed

+672
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencies = [
4848
"yaspin>=3.1.0",
4949
"claude-agent-sdk>=0.1.0",
5050
"anthropic>=0.40.0",
51+
"langgraph-checkpoint>=2.0.0",
5152
]
5253

5354
requires-python = ">= 3.12,<4"

src/agentex/lib/adk/__init__.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from agentex.lib.adk._modules.acp import ACPModule
66
from agentex.lib.adk._modules.agents import AgentsModule
77
from agentex.lib.adk._modules.agent_task_tracker import AgentTaskTrackerModule
8+
from agentex.lib.adk._modules.checkpointer import create_checkpointer
89
from agentex.lib.adk._modules.events import EventsModule
910
from agentex.lib.adk._modules.messages import MessagesModule
1011
from agentex.lib.adk._modules.state import StateModule
@@ -27,16 +28,19 @@
2728

2829
__all__ = [
2930
# Core
30-
"acp",
31+
"acp",
3132
"agents",
32-
"tasks",
33-
"messages",
34-
"state",
35-
"streaming",
36-
"tracing",
33+
"tasks",
34+
"messages",
35+
"state",
36+
"streaming",
37+
"tracing",
3738
"events",
3839
"agent_task_tracker",
3940

41+
# Checkpointing
42+
"create_checkpointer",
43+
4044
# Providers
4145
"providers",
4246
# Utils

0 commit comments

Comments
 (0)