Skip to content

Add multi-agent workflow tutorial with orchestration patterns#1020

Open
gauravsinghbitmesra-design wants to merge 1 commit intometa-llama:mainfrom
gauravsinghbitmesra-design:feat/add-multi-agent-workflow-tutorial
Open

Add multi-agent workflow tutorial with orchestration patterns#1020
gauravsinghbitmesra-design wants to merge 1 commit intometa-llama:mainfrom
gauravsinghbitmesra-design:feat/add-multi-agent-workflow-tutorial

Conversation

@gauravsinghbitmesra-design

Summary

Adds a comprehensive tutorial for building multi-agent systems using Llama 4 models, addressing the gap in multi-agent orchestration examples identified in issue tracking.

Changes

New Files

  • : Complete tutorial with 24 cells demonstrating multi-agent collaboration
  • Updated with tutorial table and documentation

Key Components

  • Agent Architecture: Reusable and base classes with OpenAI-compatible API support
  • Specialized Agents: Researcher, Critic, and Writer agents with JSON tool schemas
  • Orchestration Layer: class for coordinating multi-step workflows
  • Advanced Patterns: Parallel execution using ThreadPoolExecutor, debate pattern, and chain pattern

Use Case

Research Assistant system demonstrating how three agents collaborate to research a topic, evaluate findings, and synthesize a polished report.

Testing

  • Validated notebook JSON structure
  • Verified Python syntax in all code cells (14 cells, 100% valid)
  • Confirmed consistency with existing Tool_Calling_101 and Tool_Calling_201 notebooks
  • Tested compatibility with Llama API and Groq endpoints

Documentation

  • Added tutorial to README.md with clear description and progression table
  • Included inline documentation and examples throughout notebook
  • Referenced related tutorials (Tool_Calling_101, Tool_Calling_201)

Review Notes

This contribution fills a significant gap in the agents directory, which previously only contained basic tool-calling examples. The tutorial follows established patterns from existing notebooks and provides practical, extensible code for multi-agent workflows.

@meta-cla meta-cla bot added the cla signed label Jan 25, 2026
@gauravsinghbitmesra-design gauravsinghbitmesra-design force-pushed the feat/add-multi-agent-workflow-tutorial branch from 1546187 to 0a8af67 Compare January 25, 2026 17:33
- Add Multi_Agent_Workflow.ipynb demonstrating agent collaboration
- Implement Agent and Tool base classes with OpenAI-compatible API support
- Create specialized agents: Researcher, Critic, and Writer with tool schemas
- Build MultiAgentOrchestrator for coordinating multi-step workflows
- Include advanced patterns: parallel execution, debate, and chain patterns
- Update agents/README.md with tutorial table and documentation
@gauravsinghbitmesra-design gauravsinghbitmesra-design force-pushed the feat/add-multi-agent-workflow-tutorial branch from 0a8af67 to a13d913 Compare January 25, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant