Skip to content

notebooks/agent_memory: add OAMP support assistant example#215

Merged
WSPluta merged 1 commit into
mainfrom
feature/oamp-support-assistant-notebook
Jul 7, 2026
Merged

notebooks/agent_memory: add OAMP support assistant example#215
WSPluta merged 1 commit into
mainfrom
feature/oamp-support-assistant-notebook

Conversation

@RichmondAlake

Copy link
Copy Markdown
Member

Summary

Adds notebooks/agent_memory/oamp_support_assistant_example.ipynb, an end-to-end customer-support copilot built on Oracle AI Agent Memory (OAMP) and the OpenAI Agents SDK. It follows one damaged-delivery support case from setup through to teardown, and is listed as row 06 in the agent_memory README.

What the notebook demonstrates

  • Background extraction — raw messages return promptly while memory extraction runs in an in-process worker
  • Hybrid search — exact identifiers (RET-14D) and natural-language queries through one search API
  • In-database embeddings via OracleDBEmbedder (DB-resident ALL_MINILM_L12_V2)
  • Custom extraction instructions, metadata inheritance + filtering (tenant/case/tags/approval), and $array_contains / nested filters
  • Context cards for conversation compaction
  • Agent tool use — scoped search, context-card retrieval, typed memory write, and thread-scoped correction as OpenAI function tools
  • Update APIs — the agent corrects a communication preference; the app updates thread config and chunked policy
  • Exact scope matching (exact_user_match=True) to prevent cross-user leakage
  • TTL + deletion for short-lived operational memories
  • Chunked semantic indexing with chunk reconciliation to one logical record
  • Teardown that removes only this run's RUN_ID-scoped data, keeping the store clean and re-runnable

Notes

  • Installs oracleagentmemory from PyPI via pip install --upgrade (no local wheel).
  • Credentials are read from environment variables (OPENAI_API_KEY, DB_USER, DB_PASSWORD, DB_CONNECT_STRING); none are stored in the notebook, which ships output-free.
  • Validated end-to-end against a local Oracle AI Database 26ai (FREEPDB1) with gpt-5.4: all cells execute cleanly with no errors or warnings, and the teardown leaves the store empty.

🤖 Generated with Claude Code

Add oamp_support_assistant_example.ipynb, an end-to-end customer-support
copilot built on Oracle AI Agent Memory and the OpenAI Agents SDK. It walks
one damaged-delivery case through knowledge ingestion, agent tool use,
context-card compaction, preference correction, cross-user isolation,
TTL/retention, and teardown. Installs oracleagentmemory from PyPI via
pip --upgrade. Listed as row 06 in the agent_memory README.
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 7, 2026
@WSPluta WSPluta merged commit 7778d74 into main Jul 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants