Skip to main content
Graph optimization focuses on enhancing the structure and flow of your agent graphs to improve efficiency, reduce latency, and enhance overall performance. To access graph optimization settings, click on the Optimize Graph button at the top of the Agent Composer canvas, followed by Graph Optimizer. This will open the following modal: Modal for graph optimization settings Select the environment(s) you want to run the optimization in along with the number of rollouts per envionment. Then, set the hyperparameters for optimization:
Batch Size
integer
default:"8"
required
Number of rollouts to use in each batch. Generally, a moderate batch size (e.g. 10-20) is recommended. For agents with longer execution traces, try reducing the batch size if an error is raised.
Lastly, select the RELAI API key to use for reporting optimization metrics. After configuring the optimization settings and parameters, click on Run Optimization to begin the process. You can monitor the status of the optimization on the Agent Jobs page. When the optimization is complete, you can view the results on the Maestro Runs page.