ExAgent. Eval. Simulator
(ExAgent v3.0.0)
View Source
A model that plays the user in an ExAgent.Eval.Scenario.
Stability — Candidate.
Give the simulator a persona, an objective and a stop condition in text. It generates the first user message and then reads recent exchanges to produce the next message or signal that the condition has been met. It has no tools and receives only the user prompts and visible target outputs, with up to four prior exchanges and 1,024 bytes per field.
Build an input with ExAgent.Eval.Scenario.simulated/1. The scenario
stops at the model's stop signal, a paused target or the turn cap. The
cap counts target turns, so the simulator gets no further request after
reaching it. Evaluators can inspect the stop reason and simulator usage
in outcome.simulation.
Summary
Types
Functions
Build a simulator. Required options are :model, :persona, :objective
and :stop_when. The text fields accept up to 4,096 UTF-8 bytes each.
:max_turns defaults to 8. :model_settings defaults to 256 output
tokens per request. Pass an ExAgent.UsageLimits struct as :usage_limits
to tighten cumulative simulator usage across the conversation. The turn
cap also bounds requests, with one request per decision. Token and cost
thresholds check observed usage before a further request. Pass
:estimate_cost for custom pricing, as in ExAgent.run/3.
Replay and explicit recording use the scenario's fixture. To run a
simulated scenario without a fixture, set :allow_live to true.