Skip to content

CrewAI connector: targeted version and verified APIs

Package: crewai (published by crewAI Inc.). Targeted: 1.15.44 (extra credencestack[crewai], >=1.15.44,<2). Checked against the installed source on 2026-11-22.

Install it on its own. CrewAI 1.15 requires mcp<2, openai<3 and pydantic<2.13. The mcp extra needs mcp>=2.3 and openai-agents needs openai>=3, so these are declared as conflicting extras ([tool.uv] conflicts in pyproject.toml), CrewAI is left out of [all], and CI tests it in its own job.

APIs used, as found in 1.15.44

Need API in 1.15.44 Where
Crew crewai.Agent(role, goal, backstory, llm, tools, allow_delegation, max_iter), Task(description, expected_output, agent), Crew(agents, tasks), crew.kickoff(inputs=...) (interpolates {task}) crewai/agent/core.py, task.py, crew.py
Native tools crewai.tools.BaseTool subclass with args_schema (a pydantic model) and _run(**kwargs); cache_function returning False turns result caching off crewai/tools
Events crewai.hooks: register_before_llm_call_hook, register_after_llm_call_hook, register_before_tool_call_hook; contexts carry agent, task, crew, llm, response; returning False blocks the call crewai/hooks/llm_hooks.py, tool_hooks.py
Usage BaseLLM.get_token_usage_summary() (cumulative; snapshot before and after a call) crewai/llms/base_llm.py
Offline model a crewai.llms.base_llm.BaseLLM subclass whose call(messages, ...) returns ReAct text (Action: / Action Input: / Final Answer:), with supports_function_calling() -> False crewai/llms/base_llm.py
Telemetry off CREWAI_DISABLE_TELEMETRY, CREWAI_DISABLE_TRACKING, CREWAI_DISABLE_VERSION_CHECK, CREWAI_TRACING_ENABLED=false crewai_core/telemetry.py, crewai/events/utils/console_formatter.py

Differences from the plan's hints

  • Events: CrewAI's hooks rather than step or task callbacks or the event bus, because hooks see every model and tool call with the agent attached. The hooks are process-wide: the connector registers one dispatcher and routes each call to its episode by agent identity, so concurrent episodes stay separate (tested).
  • Approvals: human_input asks a person to review a task's final answer; there is no native approval before a tool call. Agents ask through the request_approval tool, and capabilities().human_in_the_loop is False.
  • Cost cap: CrewAI logs and ignores exceptions raised in hooks, so the connector blocks a model call at the cap by returning False and reports BudgetExhausted itself.
  • Network: CrewAI sends telemetry and checks for new versions by default; the connector sets the opt-out variables before importing CrewAI, and the tests refuse any non-local connection.
  • Determinism: repeatable with the scripted LLM. With real models, CrewAI's own prompts, its refusal of a tool call that repeats the previous input exactly, and optional planning (planning=True) add variation. The repeat refusal also blunts naive retry loops: the naive example passes 10 of the 70 payments scenarios, against 4 for other frameworks.