Agentica Infrastructure

作者 parcadeid07ff4b06b62無授權條款3.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 個月前更新

Reference guide for Agentica multi-agent infrastructure APIs

僅含說明AI & Agents
AI 產生的概覽

記錄 Agentica 多代理基礎設施 API、模式類別、原語與協調元件的參考指南。

功能
提供 Agentica 多代理協調基礎設施的參考規格,列出 Swarm、Pipeline、Jury 等十一個模式類別及其關鍵方法。它也記錄 CoordinationDB、tracked_spawn、HandoffAtom 等核心基礎設施元件,以及 Consensus、Aggregator 等原語。完整 API 規格位於隨附的 API_SPEC.md 檔案中,技能內還包含一個 Python 使用範例。
適用情境
適用於使用 Agentica 模式建構多代理工作流程,或需要模式類別精確建構函式簽章時。也用於理解協調資料庫結構、使用原語實作自訂模式,或除錯代理追蹤與孤立偵測。
執行需求
僅為說明文件,不執行指令碼。它引用技能目錄中的 API_SPEC.md 以及 scripts/agentica_patterns/ 下的原始檔,使用範例從該路徑匯入 Python 模組。

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

PatternPurposeKey Method
SwarmParallel perspectives.execute(query)
PipelineSequential stages.run(initial_state)
HierarchicalCoordinator + specialists.execute(task)
JuryVoting consensus.decide(return_type, question)
GeneratorCriticIterative refinement.run(task)
CircuitBreakerFailure fallback.execute(query)
AdversarialDebate + judge.resolve(question)
ChainOfResponsibilityRoute to handler.process(query)
MapReduceFan out + reduce.execute(query, chunks)
BlackboardShared state.solve(query)
EventDrivenEvent bus.publish(event)

Core Infrastructure

ComponentFilePurpose
CoordinationDBcoordination.pySQLite tracking
tracked_spawntracked_agent.pyAgent with tracking
HandoffAtomhandoff_atom.pyUniversal handoff format
BlackboardCacheblackboard.pyHot tier communication
MemoryServicememory_service.pyCore + Archival memory
create_claude_scopeclaude_scope.pyScope with file ops

Primitives

PrimitivePurpose
ConsensusVoting (MAJORITY, UNANIMOUS, THRESHOLD)
AggregatorCombine results (MERGE, CONCAT, BEST)
HandoffStateStructured agent handoff
build_premiseStructured premise builder
gather_fail_fastTaskGroup-based parallel execution

Full API Spec

See: API_SPEC.md in this skill directory

Usage Example

python
from scripts.agentica_patterns.patterns import Swarm, Juryfrom scripts.agentica_patterns.primitives import ConsensusModefrom scripts.agentica_patterns.coordination import CoordinationDBfrom scripts.agentica_patterns.tracked_agent import tracked_spawn
# Create tracking databasedb = CoordinationDB(session_id="my-session")
# Swarm with trackingswarm = Swarm(    perspectives=["Security expert", "Performance expert"],    db=db)result = await swarm.execute("Review this code")
# Jury with consensusjury = 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/

來源與署名

來源:parcadei/continuous-claude-v3位於.claude/skills/agentica-infrastructure提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架