Highlights for 0.8
❕ Breaking Change
The openai
package is no longer installed by default.
- Install AG2 with the appropriate extra to use your preferred LLMs, e.g.
pip install ag2[openai]
for OpenAI orpip install ag2[gemini]
for Google's Gemini. - See our Model Providers documentation for details on installing AG2 with different model providers.
0.7.6 to 0.8 Highlights
- 📔
DocAgent
- Reliability improvements, better URL handling, internal prompt refinements, check out the video
- In-memory Query Engine, no vector store required, load web pages and documents directly into your system message using an LLM to query
- Performance analysis, can it do what you need? If not, let us know!
- 🔍
ReasoningAgent
now has an internal prompt rewriter for better performance! - 🐝 Swarm - Addition of OnContextCondition and ContextExpression for context variable-based handoffs that don't require an LLM, creating faster and more predictable flows
- Lots of documentation improvements, including Reference Tools section
0.7 to 0.8 Highlights
🧠 Agents:
- We welcomed our Reference Agents - DocAgent, DeepResearchAgent, DiscordAgent, SlackAgent, TelegramAgent, and WebSurferAgent
- RealtimeAgent was refactored to support both OpenAI and Google Gemini
- Improvements to ReasoningAgent and CaptainAgent
- New
run
method for chatting directly with an agent
💭 LLM Model Providers:
- Streamlined packages making all of them optional
- Structured Output support for OpenAI, Google Gemini, Anthropic, and Ollama
- Support for new Google and Cohere libraries
- Support for OpenAI's o1 models
🐝 Swarm:
- More robust workflows with context-based handoffs using OnContextCondition and ContextExpression
- More transfer options with AfterWorkOption support in SwarmResults
- Introduction of a Swarm Manager for organic LLM-based transitions
General:
- 🎈 Significantly lighter default installation package
- 🔒 Better data security with the addition of Dependency Injection
- 💬 Streaming of workflow messages with Structured Messages
- 📚 Documentation overhaul - restructured and rewritten
- 🔧 Lots of behind-the-scenes testing improvements, improving robustness
♥️ Thanks to all the contributors and collaborators that helped make release 0.8!
New Contributors
- @SITADRITA1 made their first contribution in #1180
- @Danyylka made their first contribution in #1183
- @pendrue made their first contribution in #1161
What's Changed
- [Docs] Fix broken links by @harishmohanraj in #1170
- In Memory query engine for DocAgent by @marklysze in #1137
- Update docs with openai optional dependency by @rjambrecic in #1176
- Update docs with openai optional dependency by @rjambrecic in #1177
- Add experimental tools user guides by @rjambrecic in #1175
- Fix Terminology and Grammar in Documentation by @SITADRITA1 in #1180
- spelling errors by @Danyylka in #1183
- [@giorgossideris] Add prompt rewriting for multiple messages in ReasoningAgent by @BabyCNM in #1140
- [Docs] Fix broken links by @harishmohanraj in #1191
- [Docs] MkDocs refactoring by @harishmohanraj in #1189
- Move Reasoning agent to the "experimental" folder. by @BabyCNM in #1187
- Update RetrieveChat notebook example and minor internal naming updates by @marklysze in #1186
- Version 0.8.0b1 Version bump, documentation, and warning by @marklysze in #1182
- Fix rag query engine protocol by @AgentGenie in #1197
- spelling issue by @pendrue in #1161
- Tools user guides restructuring by @rjambrecic in #1194
- Use -U option in notebook and blog posts pip install commands by @kumaranvpl in #1207
- Remove whitespace from the agent name by @rjambrecic in #1208
- Use kwargs to create agent_configs in AgentBuilder by @kumaranvpl in #1209
- Tests fixes due to optional openai dependancy by @davorrunje in #1178
- Update tools user guides by @rjambrecic in #1217
- Chromadb query engine by @Eric-Shang in #1195
- Install openai optional dependency to fix tests being skipped in CI by @kumaranvpl in #1211
- Update dependency versions by @kumaranvpl in #1230
- Add deep research agent user guide by @rjambrecic in #1233
- Fix gemini failing and skipped tests by @sternakt in #1229
- DocAgent: RAGQueryEngine protocol alignment, URL analysis, better format handling, performance report, internal agent updates by @marklysze in #1184
- Convert input_docs to list before passing to SimpleDirectoryReader by @kumaranvpl in #1238
- Fix swarm doc link by @davorrunje in #1240
- Use pydantic's model_dump_json instead of json.dumps when available by @kumaranvpl in #1242
- [Swarm] ContextExpression and OnContextCondition by @marklysze in #1221
- Add realtime agent user guides by @rjambrecic in #1245
- Downgrade google-genai to working version by @sternakt in #1247
- ContextExpression support for len for collections by @marklysze in #1251
- Fix swarm test requiring OpenAI package import by @marklysze in #1254
- Bump version to 0.8.0 by @marklysze in #1252
Full Changelog: v0.7.6...v0.8.0