ソース情報
- リポジトリ
- ag2ai/resource-hub
- ソースの最終更新活動
- 2026年3月19日 06:20
- 検出された SKILL.md の言語
- 英語
- スター
- 4
- フォーク
- 3
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/ag2ai/resource-hub --skill add-agent-to-teamコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
REST and WebSocket endpoint patterns, error handling, and Pydantic schema conventions for the backend
Architecture, directory layout, communication protocol, and conventions for the full-stack multi-agent application
Step-by-step guide to add a new REST or WebSocket endpoint to the backend
SOC 職業分類に基づく
SKILL.md を表示中
| name | add-agent-to-team |
| description | Step-by-step guide to add a new agent to the multi-agent team |
| license | Apache-2.0 |
backend/app/agents.pyAdd the agent inside the with config: block alongside the existing agents:
with config:
planner = AssistantAgent(...)
coder = AssistantAgent(...)
reviewer = AssistantAgent(...)
# New agent
tester = AssistantAgent(
name="tester",
system_message=(
"You are a testing agent. Given the coder's implementation, "
"write comprehensive unit tests covering edge cases and error "
"conditions. Use pytest conventions."
),
)
AGENTS = [planner, coder, reviewer, tester]
AGENT_NAMES updates automatically since it's derived from AGENTS.
For RoundRobinPattern, agents execute in list order — place the new agent where it should speak in the sequence.
If switching to AutoPattern for dynamic routing:
from autogen.agentchat.group.patterns.pattern import AutoPattern
pattern = AutoPattern(
initial_agent=planner,
agents=AGENTS,
)
max_rounds in run_team()Each agent takes one round. If you added an agent, increase max_rounds to allow at least 2 full cycles:
result = await run_group_chat(
pattern=pattern,
messages=message,
max_rounds=8, # was 6 with 3 agents
)
In frontend/src/components/Chat.tsx, add a color entry:
const AGENT_COLORS: Record<string, string> = {
planner: "#2563eb",
coder: "#059669",
reviewer: "#d97706",
tester: "#7c3aed", // new
system: "#6b7280",
};
In backend/tests/test_api.py:
async def test_health(client: AsyncClient) -> None:
resp = await client.get("/api/health")
body = resp.json()
assert "tester" in body["agents"]
AGENTS list in the correct positionmax_rounds updated to accommodate the new agent