Skip to main content

openai-agents-zambo

AER-1, the agent execution receipt standard: zambo.dev/aer-1 | Add Zambo to your AI: zambo.dev/add

Zambo is the verifiable work layer for AI. This package mints a verifiable AER-1 receipt for every OpenAI Agents SDK tool event at zambo.dev.

Receipt format: AER-1, IETF Internet-Draft draft-zambo-aer1-26.

Verifiable AER-1 execution receipts for OpenAI Agents SDK agents. OpenAI Agents SDK integration for Zambo: give any agents agent a tool backed by Zambo's MCP tools, and mint a verifiable execution receipt for every tool event.

Receipts follow AER-1, the IETF draft for verifiable execution receipts created by Brennan Zambo.

  • Every call can mint a public, verifiable receipt (https://zambo.dev/run/<id>).
  • Every tool free once a day, plus 3 continue calls. One free wrap-up handover per day, and pickup is always free.
  • Endpoint override via ZAMBO_API_URL (default https://zambo.dev/mcp).
  • Hook failures are recorded in receipt_errors and never break the run.

For whole-run workflow receipts with a Merkle root (AER-1 Section 8), see aer1-openai-agents.

Install

pip install openai-agents-zambo openai-agents

Example

import asyncio
from agents import Agent, Runner
from openai_agents_zambo import ZamboRunHooks, zambo_function_tool

hooks = ZamboRunHooks()

agent = Agent(
    name="researcher",
    instructions="Use ask_zambo for anything Zambo's tools can do.",
    tools=[zambo_function_tool()],
)

result = asyncio.run(Runner.run(agent, "What is the capital of France?", hooks=hooks))
print(result.final_output)
print("Receipts:", hooks.receipt_urls)  # public verifiable receipt URLs
print("Errors:", hooks.receipt_errors)

Chain it: a job, not a lookup

One call answers a question. A job chains calls and ends in a record a person can open. Same agent, longer instruction:

result = asyncio.run(Runner.run(agent, "Check the live price of BTC, ETH and SOL, save the run to memory, then wrap it into a handover addressed to me, with the receipt link for every call.", hooks=hooks))

Three prices, a save and the wrap fit inside one free day: every tool free once a day, plus 3 continue calls, and one free wrap-up handover per day. A longer run finishes in one sitting on a Day Pass ($0.99, unlimited for 24 hours). The handover is the part the person opens: the steps, the saved results, and the receipt for every call, checkable instead of trusted. Ready-made run cards for jobs shaped like this: https://rambozambodotdev.gitlab.io/aer1-hub/handover-templates.html

Requires OPENAI_API_KEY in your environment.

API

  • ZamboRunHooks(timeout=30.0) subclasses agents.RunHooks. Its on_tool_start/on_tool_end publish a receipt for the tool event. Tracks receipt_urls, receipt_errors, last_receipt_url.
  • zambo_function_tool(name="ask_zambo", description=..., timeout=30.0) returns an agents.FunctionTool wrapping zambo_universal. On invocation it calls the endpoint, captures the public receipt URL, and appends it to the returned text. Same receipt tracking attributes. Raises an informative ImportError if openai-agents is not installed.

Honesty note

Receipts record what the Zambo endpoint observed: the goal it received, the result it produced, and the public receipt URL it minted. They do not independently certify anything the endpoint did not see.

Guides

Local AER-1 receipts (no network needed)

The package also mints AER-1 execution receipts locally, with no API calls:

from openai_agents_zambo import mint_receipt, verify_receipt

receipt = mint_receipt("my_tool", {"query": "hello"}, {"answer": "hi"}, ms=42)
assert verify_receipt(receipt)  # recomputes the SHA-256 locally

Local receipts follow the AER-1 core members (id, created_at, tool, provenance_class, canonical_bytes, output_hash) and use the provenance class EXECUTED BY OPENAI-AGENTS-ZAMBO, naming this package as the recording system. They pass the same hash-recomputation check as any AER-1 receipt.

Where these receipts run live: Zambo

openai-agents-zambo mints a verifiable AER-1 receipt for every OpenAI Agents SDK tool event, and it has been downloaded 7,804 times on PyPI. The live home of those receipts is Zambo, the verifiable work layer for AI. Connect any AI to the live endpoint at https://zambo.dev/mcp or add Zambo to your AI in one step at https://zambo.dev/add/

Every tool free once a day, plus 3 continue calls. One free wrap-up handover per day, and pickup is always free. The Day Pass is $0.99 for 24 hours, unlimited.

Install:

pip install openai-agents-zambo

Metadata

Release files for openai-agents-zambo 0.1.16

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

Source distribution (sdist)

Source distribution for openai-agents-zambo 0.1.16
File Size Uploaded Provenance Actions
openai_agents_zambo-0.1.16.tar.gz 9.7 kB Without provenance Details for openai_agents_zambo-0.1.16.tar.gz

Built distribution (wheel)

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

Total release size: 19.0 kB

Release files / openai_agents_zambo-0.1.16.tar.gz

Download URL openai_agents_zambo-0.1.16.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7962a941458eaad8042e93b11594504a91d1fefe554b1ac8be75b31257e273d5
BLAKE2b-256 checksum
How to use checksums
2355265b420b8cead3bd465c1c908c71fcc0c8af760991261e7d091791ffbc63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via rambo-pypi-grab/0.1.0

Release files / openai_agents_zambo-0.1.16-py3-none-any.whl

Download URL openai_agents_zambo-0.1.16-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed7fff54c13815a1a854a0c29508e067b0278abe49ce80856ba54b9b999f3fe4
BLAKE2b-256 checksum
How to use checksums
8ec1a1735aade6c67d5acdc7f02c846c73012d1feb0d42d2b6753ce307c771bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via rambo-pypi-grab/0.1.0

Security for openai-agents-zambo 0.1.16

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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