Agent Observability Python Framework Module: OpenAI Agents
agento11y-openai-agents provides callback handlers that map OpenAI Agents lifecycle events into agento11y generation recorder lifecycles.
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:
conversation_id/session_id/group_idthread_id- deterministic fallback
agento11y:framework:openai-agents:<run_id>
Metadata and lineage
Required framework tags:
agento11y.framework.name=openai-agentsagento11y.framework.source=handleragento11y.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_idorconversation_idin callback metadata. - If provider is inferred as
custom, setprovider="openai"(or another provider) on handler init. - Always call
client.shutdown()during teardown.
Metadata
Release files for agento11y-openai-agents 0.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agento11y_openai_agents-0.17.0.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agento11y_openai_agents-0.17.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / agento11y_openai_agents-0.17.0.tar.gz
| Download URL | agento11y_openai_agents-0.17.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d6e301c3be60c2ba987eac13e28ff5b0c8c0a00c5e7a14ac31c777c4b05e7e9
|
|
BLAKE2b-256 checksum How to use checksums |
82bd7bf07a67b09b2824539b5370c3abd08200959b45c3a7788c60e7b77d6766
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 25, 2026.
Transparency logRelease files / agento11y_openai_agents-0.17.0-py3-none-any.whl
| Download URL | agento11y_openai_agents-0.17.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74fca90c961dae5d7568f54d93e186463a0466168fa3b94ebcf3e38043350f97
|
|
BLAKE2b-256 checksum How to use checksums |
6d9b2e82f50e994899c61a21398b1b14cc3311e67c421a9a4aa901b693e3e82a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 25, 2026.
Transparency log