# MrlX Multi-Agent Reinforcement Learning Framework In MrlX, Agent A and Agent B operate as independent agents, communicating via a message queue that enables cross-agent API calls, abstracts internal logic into external requests, and supports multi-turn interactions, inference result sharing, and collaborative decision-making. At runtime, Agent A initiates multi-turn dialogue generation, while Agent B also engages in multi-turn responses. The coordination module evaluates both agents’ dialogues, calculates bilateral rewards, and drives iteration through the message queue. Each agent maintains a complete train–infer loop: the Data Buffer manages training samples, the SGLang Router schedules inference tasks, and Megatron executes model training, forming a “Generate → Train → Sync” flywheel mechanism. Training data flows from the Data Buffer into Megatron, where updated weights are synchronized back to the inference service. This enables efficient knowledge transfer and continuous co-evolution between agents, transcending single-task limitations and allowing multi-agent systems to improve decision-making capabilities in dynamic environments. ## Table of Contents - [Architecture-Overview](#Architecture-Overview) - [Use-Cases](#Use-Cases) - [MrlX-TakesTwo](#MrlX-TakesTwo) - [MrlX-DeepResearch](#MrlX-DeepResearch) - [Acknowledgements](#Acknowledgements) ## Architecture-Overview