A multi-agent system template powered by AG2 (formerly AutoGen), an open-source framework with 500K+ monthly PyPI downloads.
This template demonstrates a ReAct-style agent built with AG2, featuring:
- Tool Use: Decorator-based function registration for LLM tool calling
- Multi-Agent Ready: Easy to extend with GroupChat for multi-agent orchestration
- Dual LLM Support: Vertex AI (Gemini) by default, with Google API key fallback
User Message
|
v
+--------------+ +---------------+
| UserProxy |---->| Assistant |
| (executor) |<----| (LLM agent) |
+--------------+ +---------------+
| |
v v
+----------+ +----------+
| Tools | | Gemini |
| (Python | | / GPT |
| funcs) | | |
+----------+ +----------+
agent-starter-pack create my-agent --agent ag2
cd my-agent
make install
make playground- Add tools: Define functions with
@user_proxy.register_for_execution()+@assistant.register_for_llm() - Change model: Update
llm_configinapp/agent.py - Multi-agent: Add GroupChat (see
notebooks/getting_started.ipynb)