Add AG2 multi-agent example with Mistral models#257
Add AG2 multi-agent example with Mistral models#257faridun-ag2 wants to merge 2 commits intomistralai:mainfrom
Conversation
Add AG2 integration notebook demonstrating multi-agent orchestration with Mistral models: basic two-agent chat, function calling with dual registration, and GroupChat with automatic speaker selection.
|
Hey @jaccolor2 This PR adds an AG2 integration example to the cookbook. Here's a quick overview of what's included: Notebook: Three progressive examples demonstrating AG2 + Mistral:
Key details:
AG2 (formerly AutoGen) is a separate project from the existing Happy to adjust anything as needed! |
Summary
third_party/AG2/What's included
third_party/AG2/ag2_multi_agent_mistral.ipynb— Colab-compatible notebook with:AssistantAgent+UserProxyAgentwith Mistralregister_for_llm+register_for_execution)How it differs from MS_Autogen_pgsql
The existing
third_party/MS_Autogen_pgsql/example uses Microsoft AutoGen (the original project).AG2 is the community-maintained fork with:
MistralLLMConfigEntrypip install ag2(separate package from Microsoft'sautogen-agentchat)Test Plan
pre-commit run detect-private-key --all-filespassesos.getenv("MISTRAL_API_KEY")