traitclaw-team
Multi-agent orchestration for TraitClaw — teams, role routing, delegation, and verification chains.
Compose multiple agents into teams where each agent has a specialized role. Route messages to the right agent, and set up generate-then-verify pipelines for quality assurance.
Usage
use ;
// Define a team with specialized roles
let team = new
.add_role
.add_role
.add_role;
// Route to a specific role
let researcher = team.find_role.unwrap;
// Verification chain: generate → verify → retry if rejected
let chain = new.with_max_retries;
Components
| Component | Purpose |
|---|---|
Team |
Container for named agent roles |
AgentRole |
Role definition with name, description, and optional system prompt |
VerificationChain |
Generate-then-verify pipeline with retry logic |
VerifyResult |
Accepted(output) or Rejected(feedback) |
Patterns
- Pipeline: researcher → writer → reviewer (sequential processing)
- Router: route queries to the best-matching role
- Verification: generate content, verify quality, retry with feedback
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.