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_capabilitytakeinput_json(a JSON object string) because strict function schemas do not allow free-form objects.cracked_tools()buildsFunctionTools withstrict_json_schema=Falseso 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cracked_ai_openai_agents-0.1.0.tar.gz.
File metadata
- Download URL: cracked_ai_openai_agents-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88273d9e702069d667f19a148ac119071de1fc46d6e2ca2c7e1ec085687f6e96
|
|
| MD5 |
f4eee4ac6af8e185784e8538882fb289
|
|
| BLAKE2b-256 |
26bd1c2474b55009cf0f952b38c596c5cae92fc931044c4037d81cdc8f20578c
|
File details
Details for the file cracked_ai_openai_agents-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cracked_ai_openai_agents-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38e717021643572097153ad2f461ff783dba508c00f1ae7d770c3ae01b4742d1
|
|
| MD5 |
174efcfd08da1529e3fed9342c711c2e
|
|
| BLAKE2b-256 |
43b0da3341277affecb866c8df136a37b0da766aabc45942aaedd1f0dc686879
|