toolbroker-crewai
CrewAI adapter for ToolBroker.
pip install toolbroker-crewai
from crewai import Agent, Crew, Task
from toolbroker import ToolBroker
broker = ToolBroker()
broker.add_functions([search_orders, issue_refund, check_inventory])
broker.index()
tools, selection = broker.select_for("crewai", "customer wants a refund", k=3)
agent = Agent(role="Support", goal="Help the customer", backstory="...", tools=tools)
CrewAI pulls a large dependency tree. That is precisely why this is a separate package — nothing reaches the ToolBroker core, and installing it affects only you.
Schemas
CrewAI wants args_schema as a pydantic model class, not a JSON Schema dict, so
this adapter builds one per tool with toolbroker.schema.model_from_schema. Awkward
parameter names are handled: order-id becomes order_id with an alias, and a
parameter called schema or class gets mangled and aliased rather than shadowing a
pydantic or Python name.
Anything the converter cannot map degrades to a permissive field. A tool the model can still call with loose typing beats one that disappeared because its schema used a construct nobody anticipated.
Remote tools
Tools with no local callable need an invoker, or the adapter refuses rather than
emitting one that fails when the agent calls it:
CrewAIAdapter(invoker=lambda tool, kwargs: my_client.call(tool, kwargs))
Metadata
Release files for toolbroker-crewai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolbroker_crewai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for toolbroker_crewai-0.1.0-py3-none-any.whl |
Release files / toolbroker_crewai-0.1.0-py3-none-any.whl
| Download URL | toolbroker_crewai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9583ef4ec34921b9f3b3e96b42981c507575d455f13fc76a8aebfc9e0bd491b5
|
|
BLAKE2b-256 checksum How to use checksums |
b508fb608b4cd583467760cf065da5057a17e745ef4fc2ffef031e85cc8a53f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for toolbroker-crewai 0.1.0
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.