Skip to content

feat: add MapReduceSociety for parallel agent task processing (#1503)#3971

Open
yugborana wants to merge 1 commit intocamel-ai:masterfrom
yugborana:feat/map-reduce-society
Open

feat: add MapReduceSociety for parallel agent task processing (#1503)#3971
yugborana wants to merge 1 commit intocamel-ai:masterfrom
yugborana:feat/map-reduce-society

Conversation

@yugborana
Copy link
Copy Markdown
Contributor

  • Add MapReduceSociety class in camel/societies/map_reduce.py

  • Implements Split -> Map (parallel) -> Reduce pipeline

  • Supports both sync (ThreadPoolExecutor) and async (asyncio.gather)

  • Configurable num_mappers, role names, tools, and model backend

  • Add unit and integration tests in test/agents/test_map_reduce.py

  • Add cookbook example in examples/map_reduce_society.py

  • Update camel/societies/init.py exports

Related Issue

Closes #

Description

What is the purpose of this pull request?

  • Bug fix
  • [yes ] New Feature
  • Documentation update
  • Other

Checklist

  • I have read and agree to the AI-Generated Code Policy (required)
  • [ yes] I have linked this PR to an issue (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and run uv lock
  • [yes ] I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed
  • [yes ] I have added examples if this is a new feature

If you are unsure about any of these, don't hesitate to ask. We are here to help!

…ai#1503)

- Add MapReduceSociety class in camel/societies/map_reduce.py

- Implements Split -> Map (parallel) -> Reduce pipeline

- Supports both sync (ThreadPoolExecutor) and async (asyncio.gather)

- Configurable num_mappers, role names, tools, and model backend

- Add unit and integration tests in test/agents/test_map_reduce.py

- Add cookbook example in examples/map_reduce_society.py

- Update camel/societies/__init__.py exports
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 26, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 06d5977e-1226-4c3b-8d2c-71832c2faf90

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@yugborana
Copy link
Copy Markdown
Contributor Author

@Wendong-Fan would like to ask for review?

@yugborana
Copy link
Copy Markdown
Contributor Author

yugborana commented Mar 26, 2026

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.

1 participant