Skip to content

Migrate from pyautogen to ag2 Library #975

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AG2AI-Admin
Copy link

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 pyautogen library to the new ag2 library.

Why the change? pyautogen is being deprecated, and ag2 is 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!

Copy link

meta-cla bot commented Jul 18, 2025

Hi @AG2AI-Admin!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@IgorKasianenko IgorKasianenko requested a review from jeffxtang July 29, 2025 10:05
@jeffxtang
Copy link
Contributor

Thanks @AG2AI-Admin for the PR. Sorry for the late response. I just tried using ag2 instead of pyautogen on the Colab link of the notebook but still got an error "autogen.oai.client:Model llama-3.3-70b-versatile is not found" after replacing the deprecated Groq model "llama3-70b-8192" used in the book with "llama-3.3-70b-versatile".

Can you please try out the whole Colab notebook above to see if the error above is on your end or Groq's and make all necessary fixes, including - I also had to change ConversableAgent's name "Player White" and "Player Black" to "Player_White" and "Player_Black" to avoid an error "The name of the agent cannot contain any whitespace."? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants