feat: add AG2 multi-agent framework integration#3106
Open
faridun-ag2 wants to merge 2 commits intodeepset-ai:mainfrom
Open
feat: add AG2 multi-agent framework integration#3106faridun-ag2 wants to merge 2 commits intodeepset-ai:mainfrom
faridun-ag2 wants to merge 2 commits intodeepset-ai:mainfrom
Conversation
Add AG2Agent component that wraps AG2 (formerly AutoGen) multi-agent conversations for use in Haystack pipelines. - AG2Agent Haystack component with @component decorator - Serialization support (to_dict/from_dict) - Configurable LLM model, system message, API type - Unit tests with mocked AG2 agents - README with usage examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an integration for AG2 (formerly AutoGen), a multi-agent conversation
framework with 500K+ monthly PyPI downloads, 4,300+ GitHub stars, and 400+ contributors.
What's included
AG2Agent— A Haystack@componentthat wraps AG2 multi-agent conversationsto_dict/from_dict)How it works
The
AG2Agentcomponent creates an AG2AssistantAgentandUserProxyAgent,runs a conversation with the input query, and returns the final reply along with
the full message history. It integrates seamlessly into Haystack pipelines.
Usage
Related