Skip to main content
Available for: Python and TypeScript.

Installation

Usage

Wrap your Crew instance with wrap_crew before calling kickoff. Both sync and async kickoff are supported.

Async usage

With guardrails

Pass guardrails=True to run pre/post content checks on crew inputs and outputs.
For fine-grained control:

Agent steps

The crew’s span records zespan.agent.step (how many tasks the crew ran), zespan.agent.stop_reason (done, or error when the run failed) and zespan.agent.route_candidates (how many agents the crew has). With the zespan-crewai event listener, each agent span carries its run number in the crew (zespan.agent.step), the agent’s max_iter as zespan.agent.max_steps, and a stop reason of done or error. See Agent steps.