ソース情報
- リポジトリ
- 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-importsコマンドは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 | ag2-imports |
| description | Correct import paths and module structure for the AG2 framework |
| license | Apache-2.0 |
The package name is ag2, not autogen. All imports use the ag2 namespace.
from ag2.agentchat import AssistantAgent, UserProxyAgent, ConversableAgent
AssistantAgent -- LLM-powered agent that generates replies.UserProxyAgent -- Proxy for human input; can also execute code.ConversableAgent -- Base class for all conversable agents.from ag2 import LLMConfig
Use LLMConfig as a context manager to bind a model configuration to agents created within its scope:
with LLMConfig(api_type="openai", model="gpt-4o"):
agent = AssistantAgent(name="assistant")
from ag2.agentchat.group import run_group_chat
from ag2.agentchat.group import DefaultPattern, AutoPattern, RoundRobinPattern
run_group_chat -- Orchestrates a multi-agent conversation.DefaultPattern -- LLM-based speaker selection with optional handoffs.AutoPattern -- Automatic orchestration; the LLM decides flow.RoundRobinPattern -- Agents speak in fixed round-robin order.from ag2.tools import tool
The @tool decorator converts a plain function into a tool that agents can call.
from ag2.agentchat import initiate_chats # Sequential multi-conversation
from ag2.agentchat import register_hand_off # Handoff registration
from ag2.agentchat.group import Handoff # Explicit handoff target
import autogen -- the package was renamed to ag2.GroupChat or GroupChatManager -- use run_group_chat with a pattern instead.config_list dicts -- use LLMConfig objects.