Repository navigation
feat(examples): add optional Oracle LangGraph checkpointer to oracle-agent-memory showcase - #5762
Merged
jerelvelarde merged 2 commits intoJun 30, 2026
Conversation
…agent-memory showcase Flag-gated (LANGGRAPH_CHECKPOINTER=oracle, default memory) AsyncOracleSaver from langgraph-oracledb for durable per-thread LangGraph graph state in Oracle, complementing oracleagentmemory. Default-safe (in-memory fallback). Mirrors jerelvelarde/oracle-cookbook#4. Draft, stacked on CopilotKit#5563. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
jerelvelarde
marked this pull request as ready for review
June 29, 2026 16:37
jerelvelarde
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
June 29, 2026 16:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This builds on #5563 (the
oracle-agent-memoryshowcase). Since the showcase isn't onmainyet, this PR's diff currently includes #5563's files — once #5563 merges, it auto-reduces to just the checkpointer change below. Keeping it as a draft until then; opening early to stage the work.What this adds
An optional, flag-gated durable LangGraph checkpointer for the showcase agent, using Oracle's
langgraph-oracledbAsyncOracleSaver— so per-thread LangGraph graph state persists in Oracle, complementing (not replacing)oracleagentmemory. That rounds out the "whole stack on Oracle" story: durable memory and durable graph checkpoints.Default-safe: gated behind
LANGGRAPH_CHECKPOINTER(defaultmemory→ behavior unchanged;oracleis opt-in), with graceful fallback to in-memory on any Oracle error — so CI and the default run path never touch a DB.The actual delta (just these agent files)
agent/concierge/checkpointer.py(new) — flag-gated resolver: builds a dedicated async Oracle pool +AsyncOracleSaver, runsawait setup(), degrades toMemorySaveron failure.agent/concierge/server.py— an import-time monkeypatch injects the resolved checkpointer pastag_ui_agentspec's hardcodedMemorySaver; the FastAPI lifespan inits/closes it.agent/pyproject.toml— addslanggraph-oracledb>=1.0.1, bumpsoracledb>=2.2.0, adds devpytest/pytest-asyncio.agent/.env.example— documentsLANGGRAPH_CHECKPOINTER.agent/tests/test_oracle_checkpointer.py(new) — a durability round-trip test (skipped unlessLANGGRAPH_CHECKPOINTER=oracle).Mirrors jerelvelarde/oracle-cookbook#4, where it's reviewed + verified — the durability round-trip passes against a live Oracle DB, and 5/5 e2e pass with the flag off (no regression on the default path).
🤖 Generated with Claude Code