Skip to content

[FEATURE] Set up a dynamic map-reduce graph in Strands #1173

@Nicricflo

Description

@Nicricflo

Problem Statement

I would like to understand the proper way to set up a map-reduce graph framework in Strands. I am used to using the Send api from langgraph (see https://docs.langchain.com/oss/python/langgraph/graph-api#send for reference).

Basically, at runtime, depending on the users query, I would like anywhere from 1-5 sub-agents to be spawned (depending on user query complexity) to perform various tasks (in parallel). What would be the best way to accomplish this with strands?

Proposed Solution

No response

Use Case

This would help with map-reduce workflows (like summarizing a long document, where each agent takes a large chunk of documents, summarizes it, and a "summary of summaries" is created by the final agent. You don't know beforehand how many agents will be deployed.

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions