Examples
Rollout Memory
Simulate future scenarios and evaluate potential outcomes (Planning).
Intelligence Module
Scenario: Deciding advice for Emma's knee pain
When to Use
Advanced agents don't just react; they think ahead. Rollout memory allows the agent to simulate different response paths and evaluate which is best before replying. Perfect for:
- Planning agents (Chain of Thought simulations)
- Risk assessment (Simulating dangerous advice)
- A/B testing responses internally
Key Operations
simulate()Create a branched simulation
evaluate_branch()Score a branch outcome
Code Example
Emma complains of knee pain. The agent simulates two branches: "Suggest Rest" vs "Suggest Pushing Through".
Key Takeaways
- Tree of Thought: Stores a tree of possible futures.
- Use it to filter bad actions before they reach the user.
- Unlike other memories (which are past/present), this is memory of possible futures.