一键导入
a2a-patterns
How gaia exposes/consumes agents over A2A and persists AgentCards for reuse. Use when touching agents/factory.py or agents/registry.py.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How gaia exposes/consumes agents over A2A and persists AgentCards for reuse. Use when touching agents/factory.py or agents/registry.py.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Add an in-chat slash command (/foo) the right way — catalog entry, Command subclass, registry wiring, config gating, tests. Use when adding or editing anything under src/gaia/commands/.
Create a new gaia runtime tool (a callable the LLM invokes) the right way — ADK function-tool idiom, dict return, pluggable backend, registry wiring, tests. Use when adding any tool under src/gaia/tools/.
How to build ADK agents in gaia — LlmAgent, tools, SequentialAgent/ParallelAgent, session state, sub-agent delegation. Use when creating or editing any agent in src/gaia/core or src/gaia/agents.
The mandatory dev cycle for gaia features — plan, study prior art, implement in library idiom, test, self-review, and file the issue/PR via gh. Use at the start of any feature.
Add a chat connector (new messaging platform) — Handler/Send contract, lazy SDK imports, lifecycle (run vs start), config wiring, message limits, tests. Use when touching src/gaia/connectors/.
| name | a2a-patterns |
| description | How gaia exposes/consumes agents over A2A and persists AgentCards for reuse. Use when touching agents/factory.py or agents/registry.py. |
to_agent_card() in agents/factory.py (schema v0.3).registry.py stores specs as JSON in agent_registry/. Before creating an
agent, look up an existing key → reuse, don't recreate.sub_agent via its AgentCard URL.