Sigil Python Framework Module: OpenAI Agents
sigil-sdk-openai-agents provides callback handlers that map OpenAI Agents lifecycle events into Sigil generation recorder lifecycles.
Installation
pip install sigil-sdk sigil-sdk-openai-agents
pip install openai-agents
Quickstart
from sigil_sdk import Client
from sigil_sdk_openai_agents import with_sigil_openai_agents_hooks
client = Client()
run_options = with_sigil_openai_agents_hooks(None, client=client, provider_resolver="auto")
# Runner.run(agent, input="...", hooks=run_options["hooks"])
Native hooks wiring
from sigil_sdk import Client
from sigil_sdk_openai_agents import with_sigil_openai_agents_hooks
client = Client()
run_options = with_sigil_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
sigil:framework:openai-agents:<run_id>
Metadata and lineage
Required framework tags:
sigil.framework.name=openai-agentssigil.framework.source=handlersigil.framework.language=python
Metadata includes:
- required:
sigil.framework.run_type - optional:
sigil.framework.run_id,sigil.framework.thread_id,sigil.framework.parent_run_id,sigil.framework.component_name,sigil.framework.retry_attempt,sigil.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 sigil-sdk-openai-agents 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sigil_sdk_openai_agents-0.9.3.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sigil_sdk_openai_agents-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / sigil_sdk_openai_agents-0.9.3.tar.gz
| Download URL | sigil_sdk_openai_agents-0.9.3.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
914d07f871e392602e3c986fcedf912e4b1edca467caa8391ed89525146fb211
|
|
BLAKE2b-256 checksum How to use checksums |
2acb7fb16dc12af6bded2ca6b0350d113e10c632cf97b6d8a5c6ae23c14b2bbc
|
| 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 Jul 13, 2026.
Transparency logRelease files / sigil_sdk_openai_agents-0.9.3-py3-none-any.whl
| Download URL | sigil_sdk_openai_agents-0.9.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab5a444fd2a54464507ad6d6bf821a9e4568a71531925a7b7a29462cc8b760df
|
|
BLAKE2b-256 checksum How to use checksums |
b51fc8ad051df42cbc833b1f3b665e7bf86bd70ddb380139753ca30b953dd919
|
| 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 Jul 13, 2026.
Transparency log