A collection of notebooks demonstrating how to build memory-augmented AI agents on top of Oracle AI Database as the unified memory core for AI agents.
Agent memory is what separates a stateless LLM call from an agent that learns, adapts, and stays coherent across turns, sessions, and runs. It is the substrate that lets an agent:
Practical agent memory is rarely a single store. It is a small set of access patterns layered over the same backend:
| Memory type | What it holds | Typical access pattern |
|---|---|---|
| Conversation / thread memory | Turn-by-turn dialogue history for a single run | Append + ordered read |
| Episodic memory | Discrete events the agent participated in | Time-ranged search |
| Semantic memory | Durable facts and learned knowledge | Vector + keyword search |
| Procedural memory | How-to knowledge, routines, tool-use patterns | Lookup by task |
| Working memory | Scratchpad for the current step | Read/write within a run |
| Entity memory | Facts scoped to a user, customer, or object | Scoped queries |
Oracle AI Database is the unified memory core for AI agents. Rather than stitching together a vector DB, a key-value store, a graph DB, and a relational store — each with its own client, consistency model, and ops surface — Oracle AI Database serves all of these access patterns from a single converged engine:
The notebooks in this folder use the oracleagentmemory (OAMP) Python package, which is the AI-Agent Memory Package built on top of Oracle AI Database. OAMP wraps the database as a memory backend with a consistent API for users / agents, memories, and threads — the three primitives behind every notebook in this folder.
| # | Name | Description | Framework | Open Notebook | Open in Colab |
|---|---|---|---|---|---|
| 01 | Deep Research Agent | Build a deep research agent for human genome exploration that uses Tavily for live web search and stores running conversation + durable findings in Oracle AI Database. Demonstrates the OpenAI Agents SDK Session protocol implemented against an Oracle-backed memory store. |
OpenAI Agents SDK · Tavily · OAMP | ||
| 02 | Supply Chain Assistant | A supply chain assistant that tracks and updates shipment cargo through in-process tools and an MCP server. Uses Oracle AI Agent Memory to persist shipment records, operational notes, and conversation history across restarts. | Claude Agent SDK · MCP · OAMP | ||
| 03 | Mortgage Approval Workflow | A deterministic mortgage approval workflow modeled as a StateGraph with prebuilt create_agent nodes. Uses Oracle AI Agent Memory so a workflow that fails mid-stage can resume from the last persisted state instead of restarting. |
LangGraph · OAMP | ||
| 04 | OAMP Benchmarks | Quantifies the practical benefits of Oracle AI Agent Memory over naive flat-history memory along three axes: token consumption per turn, wall-clock latency, and response quality (LLM-as-a-judge). Runs the same 80-turn scripted conversation through three agents. | OAMP · LiteLLM · OpenAI | ||
| 05 | OAMP Developer Guide | A hands-on, step-by-step guide to the oracleagentmemory package. Builds an agent memory system from scratch — connection, the three primitives (users/agents, memories, threads), manual vs. automatic LLM-powered extraction, vector search, context cards, and scoping. |
OAMP · LiteLLM | ||
| 06 | Support Assistant Copilot | An end-to-end customer-support copilot that follows one damaged-delivery case from setup through knowledge ingestion, agent tool use, context-card compaction, preference correction, cross-user isolation, TTL/retention, and teardown. Demonstrates background extraction, pluggable embeddings (OpenAI by default or an in-database ONNX model), vector search, metadata inheritance and filtering, and chunked semantic indexing. | OpenAI Agents SDK · OAMP | ||
| 07 | Short-Term vs Long-Term Agent Memory | Lifecycle walkthrough for active thread state, summaries, typed durable memory, metadata and thread scope, context cards, updates, TTL, and deletion in Oracle AI Agent Memory 26.6. | OAMP 26.6 | ||
| 08 | Agent Memory Checklist | The agent memory checklist proved live on Oracle AI Database 26ai, with Claude as the agent. For each capability (in-database embedding, vector, keyword and hybrid recall, filtering, reranking, graph, ACID corrections, Flashback history, JSON Relational Duality, files and a DBFS scratchpad, Deep Data Security, auditing) Claude answers the same question without and with it. Setup, data, models and diagrams all live in the notebook; the appbook runs the same checklist in the browser. | Anthropic SDK · Oracle 26ai |
If you are new to Oracle AI Agent Memory, the recommended order is:
OPENAI_API_KEY, ANTHROPIC_API_KEY, or any LiteLLM-supported provider depending on the notebook)oracleagentmemory package installed