Run Agent tests: Results, analysis, and versioning
Run Test Cases, review results, and improve your Agent using evaluations and versioning.
This guide shows how to run tests, review results, and use both automated and manual evaluations to understand what’s working and what needs improvement. You’ll also learn how to save results, identify patterns with annotations and insights, and compare different agent versions using the same dataset.
Prerequisite: Read Build Agent tests: Datasets, Test Cases, and Evaluations to learn how to set up tests.
Running tests
To run the Test Cases in a Dataset:
Select the Dataset.
Click Run.
A recommended workflow:
Create Test Cases.
Run them to review raw outputs.
Define Evaluations based on the expected structure.
Run again to validate pass/fail results automatically.
After the run finishes, results appear in the Executions tab. Click an execution to see the details.

Interpreting results
Output details
At the top of the page, you can immediately see whether the execution was successful or failed. You will also see the time of day the execution occurred, the duration of the execution in milliseconds, and the number of tokens used, as reported by the LLM provider.
To get more detailed information about the execution, expand the following sections in the component:
Execution logs
Each execution includes traces that show how the component behaved:
Configuration: Provider and model settings.
Input: Context, tools configuration, and retrieval status.
System: The System Message sent to the model.
User: The User Message sent to the model.
Tool Call: Tool calls, arguments, and results.
Input/Output Guardrail: Applied guardrails and their impact.
Use these traces to validate behavior and troubleshoot issues.
Output
The final result is returned in JSON format. You can inspect and query fields using JSONPath.
Eval Logs
Shows evaluation results for each Test Case, including pass/fail status and configuration details.
Manual evaluation
Manual evaluation lets domain experts and developers assess execution quality beyond automated checks. It captures qualitative observations like ambiguous reasoning, edge cases, and prompt design issues. It includes three tools: ratings, annotations, and insights.
Ratings
Each execution can be marked as positive () or negative (). Focus on the output quality when rating. A successful execution can still receive a negative rating if the output is incorrect, incomplete, or not useful.
After rating, a manual-evaluations column is added to the Executions tab. It reflects your ratings and calculates a success rate for the Dataset.
Example
If a Dataset has three Test Cases:
Two are rated positive
One is rated negative
The result is a 67% manual success rate. This is combined with automated scores in the Total column.

Annotations
Annotations let you record findings directly on:
Tools
System Message
User Message
Guardrails
Output
To add one, open an execution and click Add Annotation below the relevant section.
Focus on explaining why something worked or failed. Clear, specific notes become more valuable over time.
A single annotation reflects one execution. Multiple annotations reveal patterns, such as recurring issues or misinterpretations. These patterns make Insights more useful.
Examples
Tools
The tool returned irrelevant data because the index is outdated. The source needs to be refreshed.
System Message
The rule rejected a valid output because
Flattenwasn’t recognized as a synonym forMerge. The prompt needs more flexibility.
User Message
The input is clear. The issue comes from the System Message, not this part.
Insights
After adding several annotations, go to the Annotation insights tab and click Generate Insights.

Insights groups patterns across annotations and highlights:
What’s working
What needs attention
Top issues
Recommended fixes
This reduces the need to review each execution individually.
For better results, annotate at least 5 to 10 Test Cases. More variety leads to more reliable insights.
Saving results
All executions are stored in the Executions tab with the following retention rules:
Auto-save: Executions are stored for 5 days.
Persistent storage: Select executions and click Save to keep them permanently. The pipeline must be saved before executions can be permanently stored.
Versioning and iteration
Versioning helps you test changes in a controlled way. When used with Datasets and Evaluations, it gives you a consistent setup where you can measure the impact of changes instead of relying on assumptions.
You can reuse the same Dataset across different Agent versions. This keeps the test conditions the same while only the configuration changes. For example:
v1 → Model: gpt-4o
v2 → Model: gpt-5
v3 → Updated System Message
Recommended approach
Start simple: Work on a single prompt without creating versions at first. Focus on fixing issues by improving instructions, structure, or constraints.
Create a baseline: When you need to compare results, save the current setup as a version. Use it as your main reference point.
Test alternatives: Try different configurations. Only save new versions when you actually need to compare them.
Keep tests consistent: Use the same Dataset across versions so results are comparable.
Promote improvements: If a version performs better than your baseline, make it your new main version.
Use the same approach when updating Datasets or evaluation rules: define a stable baseline, test under the same conditions, and promote changes only after they are validated.
Next steps
Now that you understand both the conceptual model and the implementation process, learn how to build your first AI testing workflow using Datasets, Evaluations, and Versioning.
Last updated
Was this helpful?