Skip to content

Conversation

@Ravinduprasath
Copy link

Title

Add dynamic multi-agent concurrent analysis example

Description

This PR adds a sample demonstrating dynamic creation of multiple agents for concurrent data processing and result aggregation.

The example illustrates:

  • Parallel chunk processing using dynamically created analyst agents
  • Concurrent execution with asyncio.gather()
  • Coordination between multiple agents and an aggregator agent
  • Graceful error handling in a multi-agent workflow

This sample is intended as a reference implementation for users who want to understand scalable, concurrent agent patterns using the framework.

Impact

Documentation/example only
No breaking changes
No changes to core framework logic

@github-actions github-actions bot changed the title Add dynamic agent creation example Python: Add dynamic agent creation example Dec 14, 2025
@Ravinduprasath
Copy link
Author

@microsoft-github-policy-service agree

@Ravinduprasath
Copy link
Author

Thanks! CLA is signed. Happy to make any requested changes.

Copy link
Contributor

@moonbox3 moonbox3 left a comment

Choose a reason for hiding this comment

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

Hi @Ravinduprasath, thanks for contributing this sample.

We appreciate the effort here, but the pattern you're demonstrating (parallel chunk processing with aggregation) is already covered by existing samples in our workflows/ getting_started folder that use the framework's built-in orchestration primitives:

  • concurrent_agents.py - fan-out/fan-in using ConcurrentBuilder
  • fan_out_fan_in_edges.py - parallel branching with WorkflowBuilder
  • map_reduce_and_visualization.py - map-reduce pattern with chunked processing

These samples demonstrate the recommended approach: using ConcurrentBuilder, WorkflowBuilder, and the framework's edge system rather than manual asyncio.gather() loops. We want our getting_started/ samples to guide developers toward the framework's orchestration constructs rather than working around them.

If you're interested in contributing, we'd welcome PRs that:

  • Improve or extend the existing workflow samples
  • Add documentation or clarify existing patterns
  • Address open issues

Thanks again for your interest in the project.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants