Skip to main content

Cracked for the OpenAI Agents SDK

Function tools that give an agents.Agent 50,000+ tools through one API key.

Publishing to PyPI soon. Until then install from the repo path:

pip install ./sdk/python ./sdk/integrations/openai-agents openai-agents
# later: pip install cracked-ai-openai-agents

Set CRACKED_API_KEY (https://cracked.ai/app/keys, or Cracked.register_agent()) and OPENAI_API_KEY.

Use

from agents import Agent, Runner
from cracked_ai_openai_agents import cracked_toolkit

agent = Agent(
    name="Researcher",
    instructions="Find the right tool with cracked_discover, read its schema with cracked_inspect, then cracked_run it. Quote output fields, never invent data.",
    tools=cracked_toolkit(),   # cracked_discover, cracked_inspect, cracked_run, cracked_run_capability
)
print(Runner.run_sync(agent, "What is the weather in Austin, TX right now?").final_output)

Pre-resolved tools, one per endpoint with the provider's JSON Schema as the tool parameters:

from cracked_ai_openai_agents import cracked_tools
agent = Agent(name="IG", instructions="...", tools=cracked_tools("instagram profile followers", limit=3))

Notes:

  • cracked_run / cracked_run_capability take input_json (a JSON object string) because strict function schemas do not allow free-form objects.
  • cracked_tools() builds FunctionTools with strict_json_schema=False so optional provider fields work.
  • make_functions() returns the four plain Python functions if you want to wrap them yourself.

python example.py calls the functions directly (no LLM) and, with OPENAI_API_KEY, runs a one-turn agent.

Metadata

Release files for cracked-ai-openai-agents 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 cracked-ai-openai-agents 0.1.0
File Size Uploaded
cracked_ai_openai_agents-0.1.0.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size: 8.2 kB

Release files / cracked_ai_openai_agents-0.1.0.tar.gz

Download URL cracked_ai_openai_agents-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
88273d9e702069d667f19a148ac119071de1fc46d6e2ca2c7e1ec085687f6e96
BLAKE2b-256 checksum
How to use checksums
26bd1c2474b55009cf0f952b38c596c5cae92fc931044c4037d81cdc8f20578c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / cracked_ai_openai_agents-0.1.0-py3-none-any.whl

Download URL cracked_ai_openai_agents-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38e717021643572097153ad2f461ff783dba508c00f1ae7d770c3ae01b4742d1
BLAKE2b-256 checksum
How to use checksums
43b0da3341277affecb866c8df136a37b0da766aabc45942aaedd1f0dc686879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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