-
Notifications
You must be signed in to change notification settings - Fork 4
Migrate from pyautogen to ag2 Library #3
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 #3
Conversation
WalkthroughThe requirements file was updated to remove the 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.
| groq | ||
| google-generativeai | ||
| pyautogen | ||
| ag2 |
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
Confirm package identity & pin a baseline version for ag2
ag2 is not yet a well-established name on PyPI; typo-squatting or unpublished names could break CI/CD or introduce supply-chain risk.
- Verify that
ag2exists and is the intended successor topyautogen. - Pin to a concrete version once validated, to keep builds deterministic (mirrors the un-pinned style today, but brand-new libs merit extra care).
- Grep the codebase for lingering
pyautogenimports and update them toag2to avoid runtime errors.
Run this script to check both the package presence on PyPI and any stale imports in the repo:
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# 1) Check PyPI for an `ag2` release and print the latest version
curl -s https://pypi.org/pypi/ag2/json | jq '.info.version' || {
echo "Package 'ag2' not found on PyPI – double-check the name."; exit 1;
}
# 2) Locate references to the old library
rg -n "import\s+pyautogen|from\s+pyautogen" || echo "No residual pyautogen imports found."Length of output: 216
Pin ag2 to a specific, verified version
We’ve confirmed that ag2 exists on PyPI at version 0.9.6 and there are no leftover pyautogen imports in the repo. To ensure deterministic builds and guard against supply-chain risks, please:
- In sentient-core/requirements.txt (line 9), change:
to:
ag2ag2==0.9.6
🤖 Prompt for AI Agents
In sentient-core/requirements.txt at line 9, the dependency 'ag2' is not pinned
to a specific version. Update the line to 'ag2==0.9.6' to ensure deterministic
builds and reduce supply-chain risks by specifying the verified version.
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
pyautogenwithag2.