-
Notifications
You must be signed in to change notification settings - Fork 179
Migrate from pyautogen to ag2 Library #70
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: feature-main
Are you sure you want to change the base?
Migrate from pyautogen to ag2 Library #70
Conversation
Summary by CodeRabbit
WalkthroughThe documentation for the Anthropic model integration was updated to consistently use the package alias Changes
Sequence Diagram(s)No sequence diagram generated as the changes are limited to documentation updates. ✨ Finishing Touches🧪 Generate unit tests
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.
Actionable comments posted: 3
🔭 Outside diff range comments (1)
storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md (1)
161-173
: Trailing whitespace flagged by markdownlintClean up the one-character trailing spaces on the touched lines to keep CI green.
Also applies to: 2864-2864, 6624-6637
♻️ Duplicate comments (1)
storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md (1)
2864-2864
: Duplicate alias again in later sectionSame duplication appears here – please apply the fix to keep the wording consistent.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md
(5 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md
161-161: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
173-173: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
6624-6624: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
6636-6636: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
`[](#__codelineno-2-1)pipinstall-Uag2[anthropic] ` | ||
``` | ||
|
||
as `pyautogen`, `autogen`, and `ag2` are aliases for the same PyPI package. | ||
as `ag2`, `autogen`, and `ag2` are aliases for the same PyPI package. |
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.
Same formatting issue for the ag2
command
Repeat of the above:
pipinstall-Uag2[anthropic]
needs the space after pip, the hyphen after install, and fenced-code formatting:
-`[](#__codelineno-2-1)pipinstall-Uag2[anthropic] `
+```bash
+pip install -U ag2[anthropic]
+```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
173-173: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
🤖 Prompt for AI Agents
In storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md
around lines 170 to 173, the command `pipinstall-Uag2[anthropic]` is incorrectly
formatted without spaces and hyphens and lacks fenced code block formatting. Fix
this by adding spaces and hyphens to form `pip install -U ag2[anthropic]` and
wrap the command in a fenced code block with the language identifier `bash` for
proper formatting.
If you have been using `autogen` or `ag2`, all you need to do is upgrade it using: | ||
|
||
``` | ||
`[](#__codelineno-1-1)pipinstall-Uautogen[anthropic] ` |
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.
Broken installation snippet – missing spaces/hyphen and fenced-code markup is corrupted
The rendered command currently shows as
pipinstall-Uautogen[anthropic]
which will fail if copied. It should read pip install -U autogen[anthropic]
and be wrapped in a proper fenced-code block so Markdown doesn’t swallow the back-ticks.
-`[](#__codelineno-1-1)pipinstall-Uautogen[anthropic] `
+```bash
+pip install -U autogen[anthropic]
+```
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
161-161: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
163-163: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents
In storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md
around lines 161 to 164, the installation command is incorrectly formatted
without spaces and hyphens, and the fenced code block syntax is broken. Fix the
command to read "pip install -U autogen[anthropic]" with proper spaces and
hyphen, and wrap it inside a correct fenced code block using triple backticks
and specifying "bash" for syntax highlighting.
as `ag2`, `autogen`, and `ag2` are aliases for the same PyPI package. | ||
|
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.
🧹 Nitpick (assertive)
Alias list contains duplicated entry
“as
ag2
,autogen
, andag2
are aliases …”
ag2
is repeated. If pyautogen
is intentionally removed, drop the duplicate:
-as `ag2`, `autogen`, and `ag2` are aliases for the same PyPI package.
+as `ag2` and `autogen` are aliases for the same PyPI package.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
as `ag2`, `autogen`, and `ag2` are aliases for the same PyPI package. | |
as `ag2` and `autogen` are aliases for the same PyPI package. |
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
173-173: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
🤖 Prompt for AI Agents
In storage/markdown/docs_ag2_ai_latest_docs_user-guide_models_anthropic.md at
lines 173 to 174, the alias list contains a duplicated entry for `ag2`. Remove
the repeated `ag2` so the list only includes unique aliases, ensuring clarity
and correctness in the documentation.
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 newag2
library.Why the change?
pyautogen
is being deprecated, andag2
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!