mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-12 12:06:29 +03:00
Greenfield SkillOpt: 3 epochs for Microsoft AutoGen skill. Conversational agent model, GroupChat patterns, code execution, nested chats, cancellation tokens, MCP integration. All API surfaces validated against microsoft.github.io/autogen docs.
28 lines
708 B
Python
28 lines
708 B
Python
#!/usr/bin/env python3
|
|
"""Verify AutoGen installation."""
|
|
|
|
import sys
|
|
|
|
REQUIRED = ["autogen_agentchat", "autogen_ext"]
|
|
OPTIONAL = ["autogen_core"]
|
|
|
|
for pkg in REQUIRED:
|
|
try:
|
|
__import__(pkg.replace("-", "_"))
|
|
print(f" [OK] {pkg}")
|
|
except ImportError:
|
|
print(f" [FAIL] {pkg} — install with pip install {pkg}")
|
|
sys.exit(1)
|
|
|
|
for pkg in OPTIONAL:
|
|
try:
|
|
__import__(pkg.replace("-", "_"))
|
|
print(f" [OK] {pkg} (optional)")
|
|
except ImportError:
|
|
print(f" [—] {pkg} (optional, not installed)")
|
|
|
|
from autogen_agentchat.agents import AssistantAgent
|
|
print(" [OK] AutoGen imports work")
|
|
|
|
print("\nAutoGen setup check: ALL REQUIRED PACKAGES OK")
|