Skip to content

docs(cookbook): add Oracle Agent Spec × Memory recipe - #5521

Merged
tylerslaton merged 8 commits into
mainfrom
cookbook/oracle-agent-spec-memory
Jun 19, 2026
Merged

tylerslaton merged 8 commits into
mainfrom
cookbook/oracle-agent-spec-memory

Conversation

@jerelvelarde

@jerelvelarde jerelvelarde commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds the "Build an Agentic Travel App with Oracle Agent Memory, Agent Spec, and CopilotKit" cookbook recipe, alongside daytona.mdx and following the same section pattern (Try it live → Prerequisites → setup → Try it → key code → Going further → coding-agent prompt).

It wires together:

  • Oracle Agent Spec — define the agent once as portable JSON (pyagentspec)
  • LangGraph + AG-UI — run that spec via the ag_ui_agentspec adapter, served over AG-UI (SSE)
  • Oracle AI Database — long-term memory (oracleagentmemory) so the agent remembers across sessions
  • CopilotKit V2 — the chat frontend (generative UI + human-in-the-loop), consuming the AG-UI endpoint with HttpAgent

The example is a travel concierge that recalls your preferences across sessions, searches flights, and books them with a human-in-the-loop confirmation card that stamps into a boarding pass.

Try it live

Embeds the hosted demo as a live <iframe> — cross-session recall verified working end-to-end (teach a preference in one thread, open a new thread, it recalls from Oracle AI Database).

Files

  • cookbook/oracle-agent-spec-memory.mdx (new)
  • cookbook/meta.json — sidebar entry
  • cookbook/index.mdx — overview card

Companion code

#5563 adds the runnable demo at examples/showcases/oracle-agent-memory (Python agent + Next.js frontend + Oracle AI Database), beside daytona-runcode. The recipe's "Get the code" links point there.

No external asset dependencies

  • "Try it live" is a live <iframe> — no CDN video to upload.
  • The architecture diagram is an inline base64 data-URI SVG — no CDN image to upload.

Caveat kept honest in the doc

  • Recall is eventually consistent — memory is extracted/embedded/indexed asynchronously, so a just-taught fact becomes recallable after a short delay.

Verified

  • book_flight is a CopilotKit ClientTool (useHumanInTheLoop) — the confirm→book HITL resolves in a single agent run. Multi-turn follow-ups work via a server-side full-history replace that sidesteps an upstream Agent Spec × AG-UI tool_call_id correlation bug (documented inline + in feat(examples): add oracle-agent-memory showcase #5563's known-issues).
  • Playwright E2E covers cross-session recall, flight search, and the booking HITL (3/3 green).
  • All CI green; ready for review.

🤖 Generated with Claude Code

Adds a cookbook recipe showing how to define an agent once in Oracle
Agent Spec, run it on LangGraph over AG-UI, give it long-term memory on
Oracle AI Database, and render it in CopilotKit. Registers the page in
the cookbook sidebar (meta.json) and overview (index.mdx).

Draft: live-demo video pending CDN upload; example source repo
(CopilotKit/oracle-cookbook) pending publish.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@vercel

vercel Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment Jun 19, 2026 1:55am
docs Ready Ready Preview, Comment Jun 19, 2026 1:55am
form-filling Ready Ready Preview, Comment Jun 19, 2026 1:55am
research-canvas Ready Ready Preview, Comment Jun 19, 2026 1:55am
travel Ready Ready Preview, Comment Jun 19, 2026 1:55am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@github-actions

github-actions Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

12 of 41 service(s) not digest-pinned.

Service Source.image Status
starter-adk ghcr.io/copilotkit/starter-adk:latest mutable-tag
starter-agno ghcr.io/copilotkit/starter-agno:latest mutable-tag
starter-crewai-crews ghcr.io/copilotkit/starter-crewai-crews:latest mutable-tag
starter-langgraph-fastapi ghcr.io/copilotkit/starter-langgraph-fastapi:latest mutable-tag
starter-langgraph-js ghcr.io/copilotkit/starter-langgraph-js:latest mutable-tag
starter-langgraph-python ghcr.io/copilotkit/starter-langgraph-python:latest mutable-tag
starter-llamaindex ghcr.io/copilotkit/starter-llamaindex:latest mutable-tag
starter-mastra ghcr.io/copilotkit/starter-mastra:latest mutable-tag
starter-ms-agent-framework-dotnet ghcr.io/copilotkit/starter-ms-agent-framework-dotnet:latest mutable-tag
starter-ms-agent-framework-python ghcr.io/copilotkit/starter-ms-agent-framework-python:latest mutable-tag
starter-pydantic-ai ghcr.io/copilotkit/starter-pydantic-ai:latest mutable-tag
starter-strands-python ghcr.io/copilotkit/starter-strands-python:latest mutable-tag

Run 2026-06-18 18:52:34 PDT — 12 finding(s).

Retitles to 'Build an Agentic Travel App with Oracle Agent Memory, Agent Spec, and CopilotKit' and syncs the recipe with the latest example: adds the memory-ownership diagram + 'what's CopilotKit, what's Oracle' section, documents memory reconciliation/supersession, and updates booking + multi-turn guidance (follow-ups now work via a server-side history-replace). Keeps the CDN media + clone conventions.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@pkg-pr-new

pkg-pr-new Bot commented Jun 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/@copilotkit/a2ui-renderer@5521

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/@copilotkit/agentcore-runner@5521

@copilotkit/angular

pnpm add https://pkg.pr.new/@copilotkit/angular@5521

@copilotkit/bot

pnpm add https://pkg.pr.new/@copilotkit/bot@5521

@copilotkit/bot-discord

pnpm add https://pkg.pr.new/@copilotkit/bot-discord@5521

@copilotkit/bot-slack

pnpm add https://pkg.pr.new/@copilotkit/bot-slack@5521

@copilotkit/bot-ui

pnpm add https://pkg.pr.new/@copilotkit/bot-ui@5521

@copilotkit/core

pnpm add https://pkg.pr.new/@copilotkit/core@5521

@copilotkit/react-core

pnpm add https://pkg.pr.new/@copilotkit/react-core@5521

@copilotkit/react-native

pnpm add https://pkg.pr.new/@copilotkit/react-native@5521

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/@copilotkit/react-textarea@5521

@copilotkit/react-ui

pnpm add https://pkg.pr.new/@copilotkit/react-ui@5521

@copilotkit/runtime

pnpm add https://pkg.pr.new/@copilotkit/runtime@5521

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/@copilotkit/runtime-client-gql@5521

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/@copilotkit/sdk-js@5521

@copilotkit/shared

pnpm add https://pkg.pr.new/@copilotkit/shared@5521

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/@copilotkit/sqlite-runner@5521

@copilotkit/voice

pnpm add https://pkg.pr.new/@copilotkit/voice@5521

@copilotkit/vue

pnpm add https://pkg.pr.new/@copilotkit/vue@5521

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/@copilotkit/web-inspector@5521

commit: 1df235d

@tylerslaton
tylerslaton merged commit 722000b into main Jun 19, 2026
25 checks passed
@tylerslaton
tylerslaton deleted the cookbook/oracle-agent-spec-memory branch June 19, 2026 20:20
jerelvelarde added a commit that referenced this pull request Jun 30, 2026
Runnable companion to the #5521 cookbook recipe — a portable Oracle
Agent Spec agent on LangGraph over AG-UI, long-term memory on Oracle AI
Database, and a CopilotKit V2 frontend (generative UI + HITL booking).
Lives beside `daytona-runcode`.

- `agent/` — Python (uv) Agent Spec agent + FastAPI AG-UI server
- `frontend/` — Next.js CopilotKit V2 chat (flight cards, recall chip,
HITL booking)
- `db/` — Oracle AI Database (Free image) + cookbook-user init
- `docker-compose.yml` (local Oracle) + per-service `railway.json`

✅ Live cross-session recall verified working on the hosted demo (a
preference taught in one thread is recalled in a fresh thread).

### Pre-merge follow-ups — resolved ✅
- [x] **Workspace deps** — the frontend builds standalone (`npm ci` +
`next build` ✓ inside the monorepo). It ships its own
`package-lock.json` and is intentionally excluded from the pnpm
workspace (the `daytona-runcode` / `shell-dashboard` convention), so the
published prerelease `@copilotkit/*` resolve and no
`workspace:*`/`catalog:` is needed.
- [x] **Promote SSOT** — the live demo is hosted independently (not part
of CopilotKit's Railway promote fleet), so no
`showcase/scripts/railway-envs.ts` entry is required.
- [x] **`db/build-and-push.sh`** — default image namespace genericized
to an `OWNER` placeholder (still `IMAGE`-overridable).
- [x] **Oracle license** — `db/Dockerfile` and `build-and-push.sh` both
document that the built image must stay in a PRIVATE registry
(re-publishing the Oracle base image violates the license).

> The Vercel preview deploys and `fork-pr-monitor` fail because this is
a cross-fork PR (forks can't access deploy secrets) — not code issues.
`config-allowlist` is fixed.

Docs: #5521.

This branch was successfully deployed

5 active deployments
Preview – travel — 37466ecf Deployed Jun 19, 2026 by vercel[bot]
Preview – research-canvas — 37466ecf Deployed Jun 19, 2026 by vercel[bot]
Preview – docs — 37466ecf Deployed Jun 19, 2026 by vercel[bot]
Preview – chat-with-your-data — 37466ecf Deployed Jun 19, 2026 by vercel[bot]
Preview – form-filling — 37466ecf Deployed Jun 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants