- 概要
- UiPath Agents の利用を開始する
- LangGraph を使用した UiPath Agents の利用を開始する
- Studio Web でローコード エージェントを構築する
- UiPath エージェントにツールを追加する
- はじめに
- API ワークフローを構築する
- エージェントに接続する
- エンドツーエンドでテストする
ツールを使用するエージェントをエンドツーエンドで実行し、自律型 API 呼び出しを検証して、完全なエージェント パイプラインを確認します。
ツールを接続し、エージェント コントラクトを更新したら、パイプライン全体をテストする準備が整いました。
手順 5 - エンドツーエンドでテストする
To test the agent end-to-end, use the Debug button from the toolbar at the top of the agent builder. This opens up the Debug configuration dialog, then do the following:
- Open the Entrypoint arguments tab
- Enter a quest description from the code block below
- Then select Save & Debug to run it
The villagers report a massive creature has been destroying farms on the edge of the forest at night.
The villagers report a massive creature has been destroying farms on the edge of the forest at night.
After you click on Save & Debug, you can watch the Execution Trail at the bottom of the agent builder as it executes. The Execution Trail shows the agent's full decision process. For a tool-using agent, expect at least three events:
- The agent's initial analysis of the quest
- The tool call with the search term it chose
- The tool response with the candidate list
The agent then reasons over those candidates before producing its final output.
次の情報が表示されます。
- エージェントは、クエストに基づいて選択した検索語で モンスタークエリ を呼び出します。
- ツールは候補のリストを返します。
- エージェントは、最適な一致を選択し、5 つの出力フィールドを返します。
Select the HTTP Request - Open5e Monster Query span to see the request the tool actually sent: the v2/creatures/ URL, the search term the agent chose in name__icontains, and the document__key and fields values you configured in Step 1. The response below it carries the key identifier for each candidate.
Verify the output contains all five fields: monsterIndex, monsterName, monsterType, monsterCr, and monsterReasoning. monsterIndex is the API's key, so it carries the srd_ prefix - for example srd_giant-ape. The monsterReasoning field should explain why the agent chose this monster for the quest.
構築したもの
これで、UiPathfinder の最初のコンポーネントを構築しました。
- Built a live API connector that searches the 5e SRD: one input, one HTTP request, one output.
- Agent Builder で 1 つの選択で、エージェントをツールとしてエージェントに接続する。
- エージェントは、いつツールを呼び出すか、何を検索するか、どの候補がクエストに最も適しているかを自律的に決定するようになりました。
2 段階の推論チェーン (検索語の選択と候補の評価) は、まさに意味のある評価シグナルを生み出す種類の軌道です。これが次のラボの内容です。
次の手順
- Open5e API ドキュメント - 完全なモンスター検索 API を探索して、利用可能なフィールドを理解します。
- UiPath Integration Service - カスタム ワークフローを記述することなく SaaS API に接続するツールを構築します。
- UiPath コミュニティ - フォーラム、使用方法、開発者によるディスカッション。