Skip to main content

Agent Observability Python Framework Module: OpenAI Agents

agento11y-openai-agents provides callback handlers that map OpenAI Agents lifecycle events into agento11y generation recorder lifecycles.

See the getting-started cookbook for a two-turn tool-using agent with standard OpenTelemetry and native agento11y variants.

Installation

pip install agento11y agento11y-openai-agents
pip install openai-agents

Quickstart

from agento11y import Client
from agento11y_openai_agents import with_agento11y_openai_agents_hooks

client = Client()
run_options = with_agento11y_openai_agents_hooks(None, client=client, provider_resolver="auto")
# Runner.run(agent, input="...", hooks=run_options["hooks"])

Native hooks wiring

from agento11y import Client
from agento11y_openai_agents import with_agento11y_openai_agents_hooks

client = Client()
run_options = with_agento11y_openai_agents_hooks(None, client=client, provider_resolver="auto")
# Runner.run(agent, input="...", hooks=run_options["hooks"])

Conversation mapping

Conversation ID precedence:

  1. conversation_id / session_id / group_id
  2. thread_id
  3. deterministic fallback agento11y:framework:openai-agents:<run_id>

Metadata and lineage

Required framework tags:

  • agento11y.framework.name=openai-agents
  • agento11y.framework.source=handler
  • agento11y.framework.language=python

Metadata includes:

  • required: agento11y.framework.run_type
  • optional: agento11y.framework.run_id, agento11y.framework.thread_id, agento11y.framework.parent_run_id, agento11y.framework.component_name, agento11y.framework.retry_attempt, agento11y.framework.event_id

Provider resolver

Resolver order: explicit provider option -> framework metadata -> model prefix inference -> custom.

Troubleshooting

  • If conversations are fragmented, pass stable session_id or conversation_id in callback metadata.
  • If provider is inferred as custom, set provider="openai" (or another provider) on handler init.
  • Always call client.shutdown() during teardown.

Metadata

Release files for agento11y-openai-agents 0.22.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agento11y-openai-agents 0.22.0
File Size Uploaded Provenance Actions
agento11y_openai_agents-0.22.0.tar.gz 13.9 kB With provenance Details for agento11y_openai_agents-0.22.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agento11y-openai-agents 0.22.0
File Interpreter ABI Platform Actions
agento11y_openai_agents-0.22.0-py3-none-any.whl Python 3 none any Details for agento11y_openai_agents-0.22.0-py3-none-any.whl

Total release size: 22.3 kB

Release files / agento11y_openai_agents-0.22.0.tar.gz

Download URL agento11y_openai_agents-0.22.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
611bf61c0a18d5dba5d376da7771fca6d572eca3e21ad17cb4531fb405af6ddc
BLAKE2b-256 checksum
How to use checksums
56021625f896cecde952a323e47b1b5c71bcf8c4b1f15239e9772c827b2d976f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / agento11y_openai_agents-0.22.0-py3-none-any.whl

Download URL agento11y_openai_agents-0.22.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62adea5aa7a99aa06ec112ff4b3e50deeedaa7276e1ef0fcca8948af222f351f
BLAKE2b-256 checksum
How to use checksums
87306fd96f8cc3f7829bf351ae26d06a4efda0364a155101e4bb4629d1930315
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for agento11y-openai-agents 0.22.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agento11y_openai_agents-0.22.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page