Overview
The sardis-crewai package enables CrewAI multi-agent teams to share Sardis wallets with group budget enforcement. Perfect for collaborative procurement workflows where multiple agents coordinate on purchasing decisions.When to Use CrewAI
- Multi-Agent Workflows: Coordinate multiple specialized agents (researcher, buyer, auditor)
- Role-Based Procurement: Assign specific roles (analyst, purchaser, reviewer)
- Group Budgets: Enforce shared spending limits across all agents
- Sequential Tasks: Multi-step procurement workflows with hand-offs
- Collaborative Decision-Making: Agents review each other’s work
Installation
Quick Start
Available Tools
Thecreate_sardis_tools function returns CrewAI-compatible tools:
sardis_pay
Execute payment with group budget enforcement
sardis_check_balance
Check individual wallet balance
sardis_check_policy
Validate payment against wallet policy
sardis_set_policy
Update spending policy
sardis_group_budget
Check shared group budget status
Tool Details
sardis_pay
Execute a payment with group budget enforcement:sardis_check_balance
Check wallet balance:sardis_group_budget
Check shared group budget:Group Budgets
Enforce shared spending limits across multiple agents:Agent Roles
Researcher Agent
Read-only access to check budgets and analyze options:Purchaser Agent
Full access to execute payments:Auditor Agent
Read-only access to review transactions:Sequential Workflows
CrewAI executes tasks sequentially, passing context between agents:Hierarchical Teams
Use a manager agent to coordinate the team:Policy Enforcement
Enforce group-level policies:Example: Three-Agent Procurement Team
examples/crewai_finance_team.py
Best Practices
1. Use Group Budgets for Team Coordination
2. Assign Clear Roles
3. Use Context for Sequential Tasks
4. Set Per-Agent Limits
Troubleshooting
Group Budget Exceeded
Agent Not in Group
Tool Not Available
Next Steps
LangChain
Build single-agent workflows
Group Budgets
Deep dive into group budget enforcement
Policy Engine
Understand spending policy rules
API Reference
Full Python SDK documentation