Skip to main content

openai-agents-zambo

OpenAI Agents SDK integration for Zambo: give any agents agent a tool backed by Zambo's 100+ tools, and mint a verifiable execution receipt for every tool event.

  • Every call can mint a public, verifiable receipt (https://zambo.dev/run/<id>).
  • Free tier: 20 calls/tool/day, no account.
  • Endpoint override via ZAMBO_API_URL (default https://zambo.dev/api/mcp).
  • Hook failures are recorded in receipt_errors and never break the run.

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 100+ 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)

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.

Release files for openai-agents-zambo 0.1.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 openai-agents-zambo 0.1.0
File Size Uploaded
openai_agents_zambo-0.1.0.tar.gz 5.2 kB Details

Built distribution (wheel)

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

Total release size: 11.7 kB

Release files / openai_agents_zambo-0.1.0.tar.gz

Download URL openai_agents_zambo-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5bcf443cca2245dfe762b2f77f5bdc6153815bc182ac4c9f3a4d15eacc1b3bcf
BLAKE2b-256 checksum
How to use checksums
307741a7c6a4648610b4c5705956bb61b16ead268c30231af1e7c8ed9df67b7e
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.0-py3-none-any.whl

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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