Getting started with agents
Test your agent
Now that you have an agent working, you need to write tests to ensure that the quality of your answers don’t degrade as you add additional context.
To add a test to your agent, you can add the following to your .agent.yml
file.
You can add as many tests as you’d like, for as many prompts as you like. For example:
You can then run these tests using the following command:
This will generate a final accuracy score and surface any consistency errors that the LLM detects.
At this point, you have a working agent as well as the ability to modify and test this agent. Congratulations!