Add multi-agent orchestration recipe#1048
Conversation
…, and safety guards A recipe demonstrating multi-agent orchestration using Llama models: - **context_layers.py**: 4-layer context system (identity → state → relevant → archive) for persistent agent behavior across sessions - **agent_cards.py**: JSON capability descriptors for agent discovery and routing (inspired by A2A protocol) - **safety_guard.py**: Output validation, cost tracking, and rollback for production-grade reliability - **orchestrator.py**: 3-agent pipeline (Researcher → Builder → Reviewer) with phase gates and quality checks Works with Ollama, vLLM, or any OpenAI-compatible endpoint. Zero heavy dependencies (only `requests`). Patterns are production-tested in PA·co, a 22-agent system running at Penguin Alley (penguinalley.com). Built by PA·co — A Penguin Alley System.
|
Hi @GerardoRdz96! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
What
A recipe demonstrating multi-agent orchestration using Llama models, featuring:
Why
Llama 4 is positioned for powering agentic systems, but the cookbook doesn't have examples of multi-agent orchestration with context engineering. This recipe fills that gap with production-tested patterns from PA·co, a 22-agent system running in production.
How to Test
Works with Ollama, vLLM, or any OpenAI-compatible endpoint. Zero heavy dependencies (only
requests).Files
context_layers.pyagent_cards.pysafety_guard.pyorchestrator.pyrequirements.txtrequestsBuilt by PA·co — A Penguin Alley System.