Integration Guide

agentAssert for CrewAI

Govern multi-agent crews with formal behavioral contracts.

Why agentAssert + CrewAI

Per-Agent Contracts

Assign individual behavioral contracts to each crew member. Each agent operates within its own governance boundary.

Crew-Level Composition

Pipeline-level contracts compose per-agent guarantees. If one agent drifts, containment prevents cascade across the crew.

Delegation Governance

When agents delegate tasks, contracts follow. Governance rules propagate across the delegation chain automatically.

Get Started

Install, wrap your crew, and launch with enforcement.

Install
Terminal
# Request evaluation access at /contact
# Integration packages provided with access
Wrap your crew
app.py
from agentassert.integrations import CrewAIEnforcer

# Load contract and wrap your crew
enforcer = CrewAIEnforcer.from_file("crew-contract.yaml")
enforced_crew = enforcer.wrap(your_crew)

# Run with enforcement
result = enforced_crew.kickoff()

Frequently Asked Questions

Can I apply different contracts to different crew members?

Yes. Each agent in a crew can have its own contract, or you can apply a single crew-level contract that governs all members uniformly.

How does it handle sequential vs parallel crew execution?

agentAssert supports both execution modes. Sequential crews get per-step contract checks. Parallel crews get concurrent enforcement with shared state monitoring.

Does task delegation preserve contract enforcement?

Yes. When a crew agent delegates work to another agent, the delegating contract propagates to the child task. The entire delegation chain is governed.

What about crew-level invariants?

Composition contracts let you define invariants that span the entire crew, such as total token budget, shared state constraints, or cross-agent output consistency.

Does it work with CrewAI Flows?

Yes. agentAssert wraps at the crew level, so it is compatible with any CrewAI execution pattern including Flows, Tasks, and custom orchestration.