‹ 首页

agentica-infrastructure

@vibeeval · 收录于 1 周前 · 上游提交 1 个月前

Reference guide for Agentica multi-agent infrastructure APIs

适合你,如果你正在开发多智能体应用并需要查阅基础设施 API。

/ 下载安装
agentica-infrastructure.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add vibeeval/vibecosystem/agentica-infrastructure
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- vibeeval/vibecosystem/agentica-infrastructure
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify vibeeval/vibecosystem/agentica-infrastructure
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
515GitHub stars
~540最小装载
~5.2K含声明引用
~5.2K文本包总量
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · cea9462

Agentica Infrastructure Reference

Complete API specification for Agentica multi-agent coordination infrastructure.

When to Use
  • Building multi-agent workflows with Agentica patterns
  • Need exact constructor signatures for pattern classes
  • Want to understand coordination database schema
  • Implementing custom patterns using primitives
  • Debugging agent tracking or orphan detection
Quick Reference
11 Pattern Classes

| Pattern | Purpose | Key Method | |---------|---------|------------| | Swarm | Parallel perspectives | .execute(query) | | Pipeline | Sequential stages | .run(initial_state) | | Hierarchical | Coordinator + specialists | .execute(task) | | Jury | Voting consensus | .decide(return_type, question) | | GeneratorCritic | Iterative refinement | .run(task) | | CircuitBreaker | Failure fallback | .execute(query) | | Adversarial | Debate + judge | .resolve(question) | | ChainOfResponsibility | Route to handler | .process(query) | | MapReduce | Fan out + reduce | .execute(query, chunks) | | Blackboard | Shared state | .solve(query) | | EventDriven | Event bus | .publish(event) |

Core Infrastructure

| Component | File | Purpose | |-----------|------|---------| | CoordinationDB | coordination.py | SQLite tracking | | tracked_spawn | tracked_agent.py | Agent with tracking | | HandoffAtom | handoff_atom.py | Universal handoff format | | BlackboardCache | blackboard.py | Hot tier communication | | MemoryService | memory_service.py | Core + Archival memory | | create_claude_scope | claude_scope.py | Scope with file ops |

Primitives

| Primitive | Purpose | |-----------|---------| | Consensus | Voting (MAJORITY, UNANIMOUS, THRESHOLD) | | Aggregator | Combine results (MERGE, CONCAT, BEST) | | HandoffState | Structured agent handoff | | build_premise | Structured premise builder | | gather_fail_fast | TaskGroup-based parallel execution |

Full API Spec

See: API_SPEC.md in this skill directory

Usage Example
from scripts.agentica_patterns.patterns import Swarm, Jury
from scripts.agentica_patterns.primitives import ConsensusMode
from scripts.agentica_patterns.coordination import CoordinationDB
from scripts.agentica_patterns.tracked_agent import tracked_spawn

# Create tracking database
db = CoordinationDB(session_id="my-session")

# Swarm with tracking
swarm = Swarm(
    perspectives=["Security expert", "Performance expert"],
    db=db
)
result = await swarm.execute("Review this code")

# Jury with consensus
jury = Jury(
    num_jurors=3,
    consensus_mode=ConsensusMode.MAJORITY,
    premise="You evaluate code quality",
    db=db
)
verdict = await jury.decide(bool, "Is this code production ready?")
Location

API spec: .claude/skills/agentica-infrastructure/API_SPEC.md Source: scripts/agentica_patterns/

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。