Skip to main content

Before you start

Complete the CLI quickstart first so your runtime already has a paired wallet, API key, and wallet UUID.

5-minute outcome

  1. Build CrewAI tools from Cobo toolkit
  2. Submit a pact and wait for owner approval
  3. Run role-based task flow
  4. Trigger and handle policy denial
  5. Verify retry and audit outcomes

Step 1: Install

Step 2: Configure environment

Step 3: Run crew flow

crewai_quickstart.py
CrewAI works especially well when each role gets a smaller CAW subset:

Step 4: Validate outcomes

Confirm the crew result captures:
  • pact submission and activation
  • allowed transfer
  • denied transfer with suggestion
  • corrected retry
  • audit summary

Go further

CoboAgentWalletCrewAIToolkit gives your crew the widened CAW runtime toolkit. You can extend it for more complex multi-agent workflows:
  • Write custom CrewAI tools — define @tool functions that call WalletAPIClient directly and assign them to specific agents. For example, a PriceAnalyst agent with a custom price-checking tool that the WalletOperator agent uses to gate transfer decisions.
  • Use the Python SDK in task callbacks — run pact submission, policy dry-runs, and audit queries programmatically in your crew’s task logic for deterministic control.
  • Combine with CLI — use caw for provisioning, debugging, and manual inspection; use CrewAI tools for agent-time execution.
  • Use role-based presets — split responsibilities into Pact Drafting, Execution, and Observer tool sets so each agent sees only the tools it needs.

Python SDK

Use WalletAPIClient directly for custom tool functions.