UiPath Documentation
getting-started
latest
false
Getting started developer guide
  • Introduction
    • Overview
    • Environment set up
  • Getting Started with UiPath Agents
  • Getting Started with UiPath Agents using LangGraph
  • Building a Low-Code Agent in Studio Web
    • Introduction
    • Build the agent
    • Test the agent
    • Evaluate the agent
  • Adding Tools to Your UiPath Agent
  • Getting Started with the Flow canvas in UiPath Maestro

Test the agent

Run the quest classifier in the Studio Web debugger against five sample quests and check the tier and reasoning it returns.

With the agent configured, you can test it against real quest descriptions.

Step 4 - Test the agent​

Select Debug in the top toolbar. This opens the Debug configuration dialog, where you can run the agent with sample input.

  1. On the Entrypoint arguments tab, paste the following quest into the questDescription field:
Clear the rats out of the inn cellar. They are loud and they are eating all of the cheese.
Clear the rats out of the inn cellar. They are loud and they are eating all of the cheese.
  1. Select Save & Debug to run the agent.

  2. Select Execution Trail along the bottom of the Studio Web canvas.

  3. Within the Execution Trace panel, select Agent run - Agent, which shows the run's Input and Output.

  4. Expand the reasoning text to view the string in its entirety.

  5. Review the tier and reasoning returned by the agent.

The agent should return a tier of Trivial with two sentences of reasoning.

Important:

Agents are non-deterministic. The reasoning text varies across runs, so check for the right tier and sensible reasoning instead of specific wording.

Now run the agent on a much bigger threat:

Slay the ancient red dragon terrorizing the countryside.
Slay the ancient red dragon terrorizing the countryside.

Expected: tier Legendary.

Read the reasoning for this run. It most likely says the dragon is dangerous because dragons are dangerous. Nothing in the answer is checked against real data: the classification comes entirely from the model's training. The Adding Tools to Your UiPath Agent lab gives the agent a live lookup against the 5e SRD (System Reference Document), so its reasoning can cite real data.

Run three more quests​

Run each of the following quests the same way. You use all five runs in the next section, so let each one finish before you start the next.

Deliver a sealed letter to the magistrate in the next town.
Deliver a sealed letter to the magistrate in the next town.

Expected: tier Trivial.

Escort a merchant caravan through the hill country to the coast.
Escort a merchant caravan through the hill country to the coast.

Expected: tier Standard.

Recover a stolen relic from a noble's estate. The guards are many, the owner is powerful, and nobody who has tried has come back.
Recover a stolen relic from a noble's estate. The guards are many, the owner is powerful, and nobody who has tried has come back.

Expected: tier Heroic or Standard. This quest is deliberately hard to call, and either answer is defensible.

If a run returns a tier you disagree with, rerun it or adjust the system prompt before you continue. The next section treats each run's output as the correct answer.

More quests to try (optional)​

These are extra practice and are not part of the evaluation set in the next section. If you run them, leave them out when you add runs from history.

Goblins have been raiding farms near the village of Millhaven and stealing livestock. The local mayor has posted a small bounty for anyone willing to clear out the nearby cave.
Goblins have been raiding farms near the village of Millhaven and stealing livestock. The local mayor has posted a small bounty for anyone willing to clear out the nearby cave.

Expected: tier Trivial.

A young dragon has claimed the mountain pass connecting two kingdoms, demanding tribute from all merchant caravans passing through. Trade has ground to a halt and the king needs someone to deal with it.
A young dragon has claimed the mountain pass connecting two kingdoms, demanding tribute from all merchant caravans passing through. Trade has ground to a halt and the king needs someone to deal with it.

Expected: tier Standard.

A demon lord has torn open a rift to the Abyss above the capital city. The sky burns red, fiends pour through in endless waves, and reality itself is beginning to unravel.
A demon lord has torn open a rift to the Abyss above the capital city. The sky burns red, fiends pour through in endless waves, and reality itself is beginning to unravel.

Expected: tier Legendary.


With five runs in your history, you can turn them into an evaluation set in the next section.

  • Step 4 - Test the agent​
  • Run three more quests​
  • More quests to try (optional)​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated