-
-
Notifications
You must be signed in to change notification settings - Fork 727
Migrate from pyautogen to ag2 Library #1012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ call = [ | |
] | ||
train = [] | ||
crewai = ["crewai>=0.32.0", "praisonai-tools>=0.0.22"] | ||
autogen = ["pyautogen==0.2.29", "praisonai-tools>=0.0.22", "crewai"] | ||
autogen = ["ag2==0.2.29", "praisonai-tools>=0.0.22", "crewai"] | ||
autogen-v4 = [ | ||
"autogen-agentchat>=0.4.0", | ||
"autogen-ext[openai]>=0.4.0", | ||
|
@@ -125,7 +125,7 @@ python-dotenv = ">=0.19.0" | |
instructor = ">=1.3.3" | ||
PyYAML = ">=6.0" | ||
mcp = ">=1.6.0" | ||
pyautogen = {version = "==0.2.29", optional = true} | ||
ag2 = {version = "==0.2.29", optional = true} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and adherence to modern packaging standards (PEP 621), define all dependencies under the |
||
autogen-agentchat = {version = ">=0.4.0", optional = true} | ||
autogen-ext = {version = ">=0.4.0", optional = true} | ||
autogen-core = {version = ">=0.4.0", optional = true} | ||
|
@@ -286,7 +286,7 @@ call = [ | |
"openai", | ||
] | ||
crewai = ["crewai", "praisonai-tools"] | ||
autogen = ["pyautogen", "praisonai-tools", "crewai"] | ||
autogen = ["ag2", "praisonai-tools", "crewai"] | ||
autogen-v4 = ["autogen-agentchat", "autogen-ext", "autogen-core", "praisonai-tools", "crewai"] | ||
|
||
[tool.poetry-dynamic-versioning] | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -145,7 +145,7 @@ python -m pytest tests/integration/autogen/test_autogen_basic.py::TestAutoGenInt | |||||
|
||||||
### Required for AutoGen Tests: | ||||||
```bash | ||||||
pip install pyautogen | ||||||
pip install ag2 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
``` | ||||||
|
||||||
### Required for CrewAI Tests: | ||||||
|
@@ -251,7 +251,7 @@ To add tests for a new framework (e.g., `langchain`): | |||||
``` | ||||||
ImportError: No module named 'autogen' | ||||||
``` | ||||||
**Solution:** Install the framework: `pip install pyautogen` | ||||||
**Solution:** Install the framework: `pip install ag2` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This solution is incomplete. While
Suggested change
|
||||||
|
||||||
**Path Issues:** | ||||||
``` | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider consolidating dependency definitions. Optional dependencies (extras) are defined here in
[project.optional-dependencies]
and also in[tool.poetry.extras]
(e.g., line 289). The[tool.poetry.extras]
section is a legacy way of defining extras in Poetry and maintaining both can lead to inconsistencies. To improve maintainability, remove the[tool.poetry.extras]
section entirely and rely only on[project.optional-dependencies]
.