Memory System
Rollout Manager
Simulation and planning ('Imagination') engine for complex decision making.
Storage: Episodic (Stores simulation traces)
Purpose
The Rollout Manager allows the agent to "think before it acts." It simulates multiple future conversation paths (rollouts) to determine the best response strategy before committing to a real answer.
Key Features
- Monte Carlo Simulation: Generates branching future states for complex queries.
- Scoring: Evaluates the outcome of branches to pick the optimal path *before* acting content.
Functional Deep Dive
Branching & Simulation
For critical decisions, the manager generates k possible next steps and uses a lightweight model to play out the conversation for n turns.
Scoring & Selection
It evaluates the final state of each branch. The MainOrchestrator then selects the path with the highest success probability and executes it in reality.
Simulation Tree Diagram
API Reference
Rollout Manager provides endpoints for simulation and planning.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/memory/v1/rollouts/simulate | Simulate rollout branches |
| GET | /api/memory/v1/rollouts | List rollout simulations |
| GET | /api/memory/v1/rollouts/rollout_id | Get rollout simulation |
| POST | /api/memory/v1/rollouts/rollout_id/evaluate | Evaluate branch |
| DELETE | /api/memory/v1/rollouts/rollout_id | Delete rollout |
SDK Reference
The Functor SDK provides a Python interface for rollout operations.