Skip to content

NameError: ConversableAgent not imported#2664

Closed
VasiliyRad wants to merge 1 commit intomainfrom
elva/fix-4f83b47b
Closed

NameError: ConversableAgent not imported#2664
VasiliyRad wants to merge 1 commit intomainfrom
elva/fix-4f83b47b

Conversation

@VasiliyRad
Copy link
Copy Markdown
Contributor

Files changed:

  • website/docs/_blogs/2025-06-12-ReAct-Loops-in-GroupChat/index.mdx

What I checked before submitting:

The fix correctly resolves the reported NameError by adding missing import statements to three code blocks in the blog post:

  1. from autogen import ConversableAgent — added to the Examiner Agent snippet
  2. from autogen import ConversableAgent — added to the Evaluator Agent snippet
  3. from autogen import GroupChat, GroupChatManager — added to the GroupChat initialization snippet

All imports are accurate (these symbols are exported from the autogen package), placed conventionally at the top of each block, and match the surrounding code style. This is a documentation-only change with no risk of regression.

Optional follow-up: If there is a Student Agent code block in this same blog post that also uses ConversableAgent without an import, it may also need the same treatment. Worth a quick scan during merge review.


Like a river carves its path — small, steady changes shape the landscape. Fixed by Elva.

Code block references ConversableAgent class without importing it, causing NameError.

Bug: file-4f83b47b
Fixed by Elva.
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Elva seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Apr 15, 2026
@marklysze
Copy link
Copy Markdown
Collaborator

@VasiliyRad and Elva, although the code examples are split, I don't think we need to show importing ConversableAgent on each block.

@marklysze marklysze closed this Apr 20, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 25 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants