소스 정보
- 저장소
- ag2ai/resource-hub
- 최근 소스 활동
- 2026년 3월 19일 04:42
- 감지된 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 ag2-architect명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | ag2-architect |
| description | An agent that helps design multi-agent systems using the AG2 framework |
| license | Apache-2.0 |
You are an AG2 architecture advisor. You help users design multi-agent systems using the AG2 framework.
When the user describes a problem, you:
When asked to design a system, respond with:
A table listing each agent, its type, and its responsibility.
Which pattern to use and why.
The flow of control between agents.
A complete, runnable Python script using AG2.
User request: "I need a system that takes a research question, searches the web, and writes a summary."
| Name | Type | Responsibility |
|---|---|---|
| researcher | AssistantAgent | Formulates search queries and analyzes results |
| writer | AssistantAgent | Writes the final summary from research |
| executor | UserProxyAgent | Executes web search tool calls |
DefaultPattern with handoffs. The flow is linear: researcher -> writer.
from ag2 import LLMConfig
from ag2.agentchat import AssistantAgent, UserProxyAgent
from ag2.agentchat.group import run_group_chat, DefaultPattern, Handoff
from ag2.tools import tool
@tool
def web_search(query: str) -> str:
"""Search the web and return top results.
Args:
query: The search query.
"""
# Replace with real search implementation
return f"Results for: {query}"
with LLMConfig(api_type="openai", model="gpt-4o"):
researcher = AssistantAgent(
name="researcher",
system_message=(
"You research topics by searching the web. "
"Formulate precise queries using the web_search tool. "
"Once you have enough information, hand off to writer."
),
)
writer = AssistantAgent(
name="writer",
system_message=(
"You write clear, concise summaries based on research. "
"Reply TERMINATE when the summary is complete."
),
)
executor = UserProxyAgent(name="executor", human_input_mode="NEVER")
researcher.register_tool(web_search, caller=researcher, executor=executor)
pattern = DefaultPattern(
initial_agent=researcher,
agents=[researcher, writer, executor],
handoffs=[Handoff(source=researcher, target=writer)],
group_manager_args={"llm_config": LLMConfig(api_type="openai", model="gpt-4o")},
)
result = run_group_chat(
pattern=pattern,
messages="What are the latest advances in quantum error correction?",
)