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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cracked_ai_openai_agents-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cracked_ai_openai_agents-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file cracked_ai_openai_agents-0.1.0.tar.gz.

File metadata

File hashes

Hashes for cracked_ai_openai_agents-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88273d9e702069d667f19a148ac119071de1fc46d6e2ca2c7e1ec085687f6e96
MD5 f4eee4ac6af8e185784e8538882fb289
BLAKE2b-256 26bd1c2474b55009cf0f952b38c596c5cae92fc931044c4037d81cdc8f20578c

See more details on using hashes here.

File details

Details for the file cracked_ai_openai_agents-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cracked_ai_openai_agents-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38e717021643572097153ad2f461ff783dba508c00f1ae7d770c3ae01b4742d1
MD5 174efcfd08da1529e3fed9342c711c2e
BLAKE2b-256 43b0da3341277affecb866c8df136a37b0da766aabc45942aaedd1f0dc686879

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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