测试智能体
在 Studio Web 调试器中,针对五个示例任务运行任务分类器,并检查其返回的层和推理。
智能体配置后,您可以根据真实的任务描述对其进行测试。
步骤 4 - 测试智能体
在顶部工具栏中选择“调试” 。这将打开“调试配置”对话框,您可以在其中使用示例输入运行智能体。
- 在“入口点参数”选项卡上,将以下任务粘贴到
questDescription字段中:
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.
-
选择保存并调试,运行智能体。
-
选择 Studio Web 画布底部的“执行追踪记录” 。
-
在执行追踪面板中,选择“智能体运行”-“智能体” ,其中显示运行的“输入”和“输出” 。
-
展开
reasoning文本可查看完整的字符串。 -
查看智能体返回的
tier和reasoning。
智能体应返回tier为Trivial ,并包含两个推理句子。
智能体具有非确定性。推理文本因运行而异,因此请检查推理是否正确、合理,而不是特定的用词。
现在,在更大的威胁上运行智能体:
Slay the ancient red dragon terrorizing the countryside.
Slay the ancient red dragon terrorizing the countryside.
预期: Legendary层。
阅读此运行的原因。它很可能会说“Drones很危险”,因为Drones很危险。答案中的任何内容都不会与真实数据进行检查:分类完全来自模型训练。向 UiPath 智能体添加工具实验室为智能体提供了 5e SRD(系统参考文档)的实时查找功能,因此其推理可以引用真实数据。
再运行三个任务
以相同方式运行以下每个任务。您将在下一部分中使用全部五次运行,因此请先完成每一次运行,然后再开始下一次运行。
Deliver a sealed letter to the magistrate in the next town.
Deliver a sealed letter to the magistrate in the next town.
预期: Trivial层。
Escort a merchant caravan through the hill country to the coast.
Escort a merchant caravan through the hill country to the coast.
预期: 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.
预期: Heroic层或Standard层。此任务被有意设置为难以调用,而这两个答案都站得住脚。
如果运行返回的层您不同意,请重新运行或调整系统提示,然后再继续。下一部分将每次运行的输出视为正确答案。
要尝试更多任务(可选)
这些是额外练习,不属于下一部分中的评估集。如果您已运行它们,请在从历史记录中添加运行时将其省略。
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.
预期: 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.
预期: 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.
预期: Legendary层。
您的历史记录中有五次运行,您可以在下一部分中将其变成评估集。