precipiq.integrations.crewai module wraps CrewAI’s step_callback hook so every AgentAction (a mid-task tool call) and AgentFinish (task complete) is automatically recorded as a Precipiq decision. Pass the callback when you construct a crewai.Agent and all subsequent task executions land in your ledger with full input/output capture and a reasoning trace.
Like the LangChain adapter, this module is import-time optional — the base precipiq package never imports anything from crewai.
Install
Usage
What gets recorded per step
Everystep_callback invocation produces a decision record with the following fields:
action_type—"agent_action"for anAgentAction(mid-task tool call), or"agent_finish"for anAgentFinish(task complete).inputs— thetool_inputon an action, or the prior output on a finish.outputs— the tool’s result on an action, or the agent’s final answer on a finish.metadata— the CrewAI steplog, which contains the agent’s reasoning trace.
Multi-agent crews
Instantiate one callback per agent so each agent’s decisions are attributed to its ownagent_id. All decisions land on the same org-wide ledger — use the dashboard’s agent filter to separate them for reporting.