From c1504f6dc41efcf88c17a26bd23923d2c9c83b0d Mon Sep 17 00:00:00 2001 From: AG2AI-Admin Date: Fri, 18 Jul 2025 14:20:15 -0400 Subject: [PATCH] Migrate from pyautogen to ag2 library --- src/praisonai/pyproject.toml | 6 +++--- src/praisonai/tests/integration/README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/praisonai/pyproject.toml b/src/praisonai/pyproject.toml index 62bd093c6..63c56eb1a 100644 --- a/src/praisonai/pyproject.toml +++ b/src/praisonai/pyproject.toml @@ -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} 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] diff --git a/src/praisonai/tests/integration/README.md b/src/praisonai/tests/integration/README.md index 720c0a0bb..3c4ea97b9 100644 --- a/src/praisonai/tests/integration/README.md +++ b/src/praisonai/tests/integration/README.md @@ -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 ``` ### 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` **Path Issues:** ```