# Technical Document Extraction: MAS System Architecture
## Left Diagram: MAS Framework
### 1. Prompt Optimization Space
- **Components**:
- Instruction
- Exemplar
### 2. Multi-Agent Design Space
- **Agent Interaction Modes** (6 categories):
- Aggregate
- Reflect
- Debate
- Summarize
- Tool-use
- Custom
### 3. Topology Optimizer
- **Function**: Connects design space to optimized topology
- **Visualization**: Blue box with bidirectional dashed arrows
## Right Diagram: Optimized MAS Design
### 1. Optimized Topology
- **Color-Coded Agent Groups**:
- **Red Group** (3 nodes):
- <ex_1>
- <ex_2>
- <ins>
- **Gray Group** (3 nodes):
- <ex_1>
- <ex_2>
- <ins>
- **Blue Group** (3 nodes):
- <ex_1>
- <ex_2>
- <ins>
### 2. Connectivity
- **Flow**:
- Red → Gray → Blue (directed arrows)
- Final node connects to green arrow
### 3. Output
- **Optimized Prompt for Each Agent Type**
- Green arrow points to final output
## System Flow
1. **Input**: Instruction + Exemplar
2. **Processing**:
- Multi-Agent Design Space operations
- Topology optimization
3. **Output**: Color-coded agent groups with optimized prompts