Pythonpython-oracle

Persist Agent Transcripts in Oracle AI Database

Python agent hook that persists complete Codex session transcripts in Oracle AI Database.

AI AgentsObservability#AI#Codex#observability#python
What this sample helps you learn

This sample is a command hook that writes an agent's transcript to Oracle AI Database. It works directly with the [Codex `Stop` hook](https://learn.chatgpt.com/docs/hooks#stop) and can be adapted to other agents that provide a session identifier and transcript file path.

What this sample demonstrates

AI Agents

Runnable AI Agents behavior on Oracle AI Database.

Use when AI Agents needs to be tested against real database behavior.

Observability

Tracing and client metadata samples for following application work into database sessions.

Use when teams need to correlate HTTP, JDBC, JMS, and database activity during operations.

Highlights

  • Python 3.13+
  • uv
  • An Oracle AI Database user with permission to create a table and read and write its rows