Skip to main content
To simulate an agent’s behavior, you need to first set up an environment. You can create a new simulation environment by clicking on Environment at the top of the Agent Composer canvas, followed by + New Environment. Next, you need a way to provide inputs to your agent during the simulation. This can be done with specialized environment nodes like the Persona or the Benchmark Trigger. Persona nodes simulate a user with specific characteristics and can be used to mock user interactions with the agent. Benchmark Trigger nodes allow you to trigger the agent with predefined sample inputs. In most cases, you will want to add some evaluators downstream of your agent node to assess its performance during the simulation. You can read more about adding evaluators in the Evaluation section. To start a simulation, click on the Sim/Eval button at the top of the Agent Composer canvas, and in the modal that appears, select the environment you created earlier (it should be selected by default). If you have multiple, environments, you can choose the ones you want to run the simulation in. Then, select the RELAI API key to use for reporting simulation metrics. Finally, click on Run Configuration to begin.