-
Notifications
You must be signed in to change notification settings - Fork 1
Migrate from pyautogen to ag2 Library #4
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?
Migrate from pyautogen to ag2 Library #4
Conversation
WalkthroughThe README file in the Autogen-cookbook directory was updated to modify the pip installation command, changing the package name from "pyautogen" to "ag2". No other content or functionality was altered. Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
| ```bash | ||
| pip install pyautogen pandas matplotlib jupyter | ||
| pip install ag2 pandas matplotlib jupyter | ||
| ``` |
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.
💡 Verification agent
🧩 Analysis chain
Verify that ag2 is the correct published package and migrate all remaining references
pip install ag2 … will break if the package on PyPI is named differently (e.g., ag2-ai, ag2ai, etc.).
Before merging, please confirm the exact package name and update:
- All notebooks / example scripts that still import
pyautogenorautogen. - The “Additional Resources” section, which still links to the original AutoGen docs.
🏁 Script executed:
#!/bin/bash
# Confirm that a package named "ag2" exists on PyPI and print its latest version.
curl -s https://pypi.org/pypi/ag2/json | jq '.info.version'Length of output: 67
🏁 Script executed:
#!/bin/bash
# Search for remaining references to the old package names in code and notebooks
rg -n -e 'import pyautogen' -e 'from pyautogen' -e 'import autogen' -e 'from autogen'Length of output: 223
🏁 Script executed:
#!/bin/bash
# Extract the “Additional Resources” section from the README
rg -n '# Additional Resources' -A10 Autogen-cookbook/README.mdLength of output: 229
Update remaining autogen references and docs links to ag2
We’ve confirmed that the ag2 package (v0.9.6) exists on PyPI. Please migrate all leftover references:
-
Autogen-cookbook/ai-vis.ipynb
• Change
import autogen→import ag2
from autogen import ConversableAgent→from ag2 import ConversableAgent -
Autogen-cookbook/README.md (Additional Resources)
• Replace
AutoGen Documentation
AutoGen GitHub Repository
with the correspondingag2resources, for example:
– ag2 on PyPI
– ag2 GitHub Repository
🤖 Prompt for AI Agents
In Autogen-cookbook/README.md around lines 24 to 26, update all remaining
references from "autogen" to "ag2". Specifically, replace the installation
command to use "ag2" instead of "autogen" if present, and in the Additional
Resources section, replace the AutoGen documentation and GitHub links with the
corresponding ag2 PyPI and GitHub URLs. Ensure all mentions and links reflect
the new package name and locations.
Hey there! This is AG2 👋
First of all, thank you for using pyautogen! We've seen you're using pyautogen, and we're here to help you migrate to ag2.
This pull request is designed to help update this codebase by smoothly transitioning from the
pyautogenlibrary to the newag2library.Why the change?
pyautogenis being deprecated, andag2is now the recommended successor for ongoing development.The good news is, there is no syntax difference between pyautogen and ag2 – this migration primarily involves updating library imports and usage.
This update will ensure the project stays compatible with the latest tools and can benefit from all the improvements in the ag2 ecosystem.
Could you please take a moment to review and merge this at your earliest convenience? Your collaboration is much appreciated! Thank you!
Summary by CodeRabbit