Skip to content

feat(third_party): add AG2 multi-agent framework integration#482

Open
faridun-ag2 wants to merge 1 commit intoanthropics:mainfrom
faridun-ag2:faridunm/add-ag2-integration
Open

feat(third_party): add AG2 multi-agent framework integration#482
faridun-ag2 wants to merge 1 commit intoanthropics:mainfrom
faridun-ag2:faridunm/add-ag2-integration

Conversation

@faridun-ag2
Copy link
Copy Markdown

Summary

  • Add AG2 (formerly AutoGen) as a third-party integration with three notebooks demonstrating multi-agent patterns with Claude
  • AG2 is an open-source multi-agent framework with 500K+ monthly PyPI downloads and 4,300+ GitHub stars
  • All notebooks tested and executed with outputs preserved

Notebooks

  1. Basic_Multi_Agent_Chat — Two-agent conversation with Claude using AssistantAgent and UserProxyAgent
  2. Tool_Use_With_Agents — Function calling with AG2's decorator-based tool registration
  3. GroupChat_Orchestration — Multiple specialized Claude agents (Researcher, Writer, Reviewer) collaborating in a managed GroupChat

Test plan

  • All three notebooks execute top-to-bottom without errors via jupyter nbconvert --execute
  • uv run python scripts/validate_notebooks.py passes
  • uv run ruff check and uv run ruff format --check clean
  • uv run python scripts/validate_authors_sorted.py passes
  • Registry entries and author entry added

Add three notebooks demonstrating AG2 (formerly AutoGen) multi-agent
patterns with Claude: basic two-agent chat, decorator-based tool use,
and GroupChat orchestration with specialized agents.
@faridun-ag2
Copy link
Copy Markdown
Author

Hi @PedramNavid @montanalow 👋

Would appreciate your review on this PR — it adds AG2 (formerly AutoGen) as a third-party integration with three notebooks covering multi-agent patterns with Claude.

Thanks!

@nidhishgajjar
Copy link
Copy Markdown

Orb Code Review (powered by GLM 5.1 on Orb Cloud)

New third-party cookbook: AG2 (formerly AutoGen) multi-agent framework integration with Claude — three notebooks covering basic chat, tool use, and GroupChat orchestration.

Observations

1. Comprehensive coverage (Positive)
Three notebooks that progressively build complexity:

  • Basic two-agent conversation
  • Tool use with decorator-based registration
  • GroupChat with multiple specialized agents

2. Output includes error in first cell (Medium)

"text": ["/Users/faridunm/Documents/WORK/AG2/Opensource/claude-cookbooks/.venv/bin/python: No module named pip
"]

The first notebook's output cell shows a No module named pip error. While this doesn't affect functionality, it suggests the notebook was tested in an environment where pip wasn't available in the venv. Consider clearing this output before merge.

3. Full file path in output (Low)
The error reveals the author's local path (/Users/faridunm/...). Clear outputs before merging to avoid leaking local paths.

4. Good configuration examples (Positive)
The notebooks show proper AG2 config list setup for Anthropic:

config_list = [{"model": "claude-sonnet-4-6", "api_key": os.environ.get("ANTHROPIC_API_KEY")}]

5. README.md missing (Note)
Other third-party directories (Dewey, SimpleFunctions) include a README.md. The AG2 directory doesn't have one. Consider adding for consistency.

Summary

Solid multi-notebook integration. Clean the error output from the first notebook and consider adding a README for consistency.

Assessment: approve (with minor cleanup suggestions)

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