tallwright-openai-agents
Cloud Proof for an OpenAI Agents SDK run, as the SDK's own run hooks. The agent's context and the actions it triggers become records that somebody else can check offline, while the content stays on your machine.
It is a thin adapter on the Python SDK, tallwright-cloud: it
decides when to hand the client an event and what content to hand it, and nothing else. The commitment,
the evidence, sending, sending again and the receipt are the SDK's
(the adapter contract).
Use it
pip install "tallwright-cloud[openai-agents]"
import tallwright_cloud as tallwright
tallwright.init() # first, before your agent framework is imported
from agents import Agent, Runner
agent = Agent(name="Refunds", instructions="Refund what policy allows.", tools=[refund])
result = await Runner.run(agent, "Refund ticket 8812")
tallwright.flush() # before the program ends: wait for what is still being sent
That installs this package beside the SDK, and there is nothing else to add. TALLWRIGHT_KEY is your
account's recording key, as in the quickstart, read from the
environment or from .env. init() finds the OpenAI Agents SDK and this
package, and every Runner.run, run_sync and run_streamed from then on is given TallwrightHooks.
A run given hooks of its own keeps them, and ours are called after them, hook by hook. The hooks record
with tallwright.recorder, the current customer's client: they never read a key and never choose where
evidence lives. The OpenAI client the SDK calls underneath is not recorded a second time: a run's model
calls are these hooks' to record.
The explicit form still works, and a run given it is left as it is:
Runner.run(agent, prompt, hooks=TallwrightHooks(tallwright.recorder)).
What becomes a record
- Each model call: the agent, its model, its instructions, the input items and the tools offered, as context the agent received.
- Each tool call, before the tool runs: the tool's name, its call id and its arguments, as an action,
with the tool's name as its
action_type. - What the tool returned, as the agent received it, as context. A tool that raised returns what the SDK made of the error for the model, and that is what is recorded.
- A handoff to another agent, as an action with
action_typehandoff.
Never recorded: the agent's reasoning or intent. Reasoning items are left out of the input and named in
omitted_input_items; the model's own output is recorded as the next model call receives it. Named
credential keys (api_key, token, authorization, …) are replaced in arguments, messages and results,
with each path in withheld_argument_keys or withheld_result_keys. Pass redact_keys= to name more.
Best effort or fail-closed
By default each event is handed to client.asubmit: it returns once the evidence is safe on your machine
and sends in the background. A capture that fails is logged by its type, never with content, the run goes
on, and the record stays in pending() until it is sent again.
TallwrightHooks(tallwright.recorder, fail_closed=True, actor_authority="role:payments-agent")
With fail_closed=True, each tool call and handoff is handed to client.acapture before it happens, and a
capture Tallwright did not confirm stops the tool: Runner.run raises it, wrapped in the SDK's
UserError. A regulated deployment sets it, passing these hooks to the run as hooks=, which init()
then leaves as they are. actor_authority names the role or rule the agent's actions run under, never
a person.
Many end customers
with tallwright.customer("4711"): # your own id for the end customer
await Runner.run(agent, prompt)
Every model call, tool call and handoff of a run inside the block is recorded for that customer, under the one recording key, into an Environment of its own, made on its first record (many end customers).
When your own system holds a key per customer, client_for gives the hooks a client per run instead: it
is called with the run's context, the object your code passed to Runner.run, as in
TallwrightHooks(client_for=lambda context: environments.client(context["customer"])).
hooks.pending() and hooks.flush() reach every client the hooks used.
What is outside the record
- Anything that does not pass through the run's hooks: an API your code calls directly, and what a
tool does inside itself. An OpenAI or Anthropic client called directly, outside a run, is recorded by
tallwright-clouditself. - Hosted tools that run on OpenAI's side (web search, file search, code interpreter): the SDK does not run them locally, so no tool hook sees them; they appear only as items the next model call receives.
- A credential inside free text: keys are replaced where they are keys, not inside strings.
- Whether what the agent was told was true. A record commits to what was received, not to whether it was right.
The SDK's own tracing is unchanged: these hooks neither add a trace processor nor remove one.
License
Copyright 2026 David Jöbstl. Licensed under the Apache License, Version 2.0: the package carries the license text and the NOTICE.
Metadata
Release files for tallwright-openai-agents 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tallwright_openai_agents-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for tallwright_openai_agents-0.1.3-py3-none-any.whl |
Release files / tallwright_openai_agents-0.1.3-py3-none-any.whl
| Download URL | tallwright_openai_agents-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
281aae025db721642290629a00a1ffbf73f512d3c78527459a96cb8cd4b8b04d
|
|
BLAKE2b-256 checksum How to use checksums |
882220ce8902af88762be40051245b4252b53e72fba250760a7a5044ea4a104d
|
| 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 Dec 2, 2026.
Transparency logSecurity for tallwright-openai-agents 0.1.3
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
1 file in this release has been uploaded with provenance metadata.
Attestation for tallwright_openai_agents-0.1.3-py3-none-any.whl
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 Dec 2, 2026.
Transparency logA 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.