- 概要
- UiPath Agents の利用を開始する
- LangGraph を使用した UiPath Agents の利用を開始する
- Studio Web でローコード エージェントを構築する
- はじめに
- エージェントを構築する
- エージェントをテストする
- UiPath エージェントにツールを追加する
Autopilot を使用してエージェントの設定を生成し、システム プロンプト、入力、出力を確認して調整します。
手順 1 - Studio Web を開く
UiPath Automation Cloud にログインし、左側のナビゲーションから Studio Web を開きます。[クラウド ワークスペース] が表示され、既存のソリューションと [新規作成 ] ボタンが表示されます。
- [ 新規作成] を選択します。
- 利用可能なオプションから [ エージェント のプロジェクトの種類] を選択します。
手順 2 - Autopilot を使用してエージェントを生成する
Studio Web の Autopilot では、平易な言葉での説明からエージェントを設定できます。どういうものがほしいかを説明すると、Autopilot がシステム プロンプト、入力スキーマ、出力スキーマを提案します。
-
エージェントの種類として [ 自律型 ] を選択します。
-
[ エージェントは何をすべきか] フィールドに、次の簡単な説明を貼り付けます。
Build a Quest Advisor for a fantasy RPG Adventurer's Guild. Given a quest description (questDescription - string), classify the quest difficulty tier (tier - number) using four tiers from local village threats up to cosmic and planar threats, suggest up to five monsters likely to be encountered (monsters - string array), and include a brief reasoning for the classification (reasoning - string).
Build a Quest Advisor for a fantasy RPG Adventurer's Guild. Given a quest description (questDescription - string), classify the quest difficulty tier (tier - number) using four tiers from local village threats up to cosmic and planar threats, suggest up to five monsters likely to be encountered (monsters - string array), and include a brief reasoning for the classification (reasoning - string).
-
[ エージェントを生成] を選択し、Autopilot の提案を確認して受け入れてエージェントを作成します。
Autopilot は非決定論的です。生成された設定がスクリーンショットと異なる場合がありますが、これは予想されることです。重要なのは、エージェント キャンバスが読み込まれることです。キャンバスにエラーが表示されたり、読み込みに失敗したりする場合は、ページを更新してこの手順を繰り返します。
手順 3 - エージェント キャンバスを確認する
Autopilot は、ユーザーが入力したプロンプトを分析し、構築と設定の手順を順を追って説明します。[ Autopilot ] ウィンドウを使用して提案を確認し、最終的なエージェントの設計に同意します。
エージェントが作成されると、 エージェント キャンバス が開きます。エージェント ノードを選択して、画面の右側に プロパティ パネルを開きます。キャンバスの右上隅にあるレンチ アイコンを使用してプロパティを開くこともできます。
Autopilot が以下を正しく設定していることを確認します。
- 入力 -
questDescription(文字列) が一覧表示されます - 出力 -
tier(数値)、monsters(配列)、reasoning(文字列) が一覧表示されます - システムプロンプト - ティア分類とモンスター選択を参照
システム プロンプト (任意)を改良します
Autopilot は、簡単な説明から実用的なシステム プロンプトを生成しますが、正確な層の境界が含まれていない場合があります。一貫性のある明確に定義された層の分類が必要な場合は、[プロパティ] パネルのシステム プロンプトを次のように置き換えます。
You are an RPG game master helping to select the difficulty tier for a quest, as well as monsters that are most likely to be encountered on the quest.
Given a quest description, return three things:
- tier: the difficulty tier that best describes the quest (a number: 1, 2, 3, or 4)
- monsters: a list of up to five monsters likely to be encountered by adventurers on that quest
- reasoning: a brief, two-sentence explanation of why you chose this tier and these monsters
Quest Tiers:
Tier 1: Local Heroes (Levels 1-4) - scope: local villages, small dungeons. Threats: goblins, bandits, wolves, low-level cultists.
Tier 2: Heroes of the Realm (Levels 5-10) - scope: entire kingdoms, major cities. Threats: orc hordes, young dragons, giants, powerful mages.
Tier 3: Masters of the Realm (Levels 11-16) - scope: whole continents, other planes of existence. Threats: adult dragons, liches, demons, powerful spellcasters.
Tier 4: Masters of the World (Levels 17-20) - scope: entire multiverse, cosmic planes. Threats: ancient dragons, demon lords, archdevils, god-like entities.
You are an RPG game master helping to select the difficulty tier for a quest, as well as monsters that are most likely to be encountered on the quest.
Given a quest description, return three things:
- tier: the difficulty tier that best describes the quest (a number: 1, 2, 3, or 4)
- monsters: a list of up to five monsters likely to be encountered by adventurers on that quest
- reasoning: a brief, two-sentence explanation of why you chose this tier and these monsters
Quest Tiers:
Tier 1: Local Heroes (Levels 1-4) - scope: local villages, small dungeons. Threats: goblins, bandits, wolves, low-level cultists.
Tier 2: Heroes of the Realm (Levels 5-10) - scope: entire kingdoms, major cities. Threats: orc hordes, young dragons, giants, powerful mages.
Tier 3: Masters of the Realm (Levels 11-16) - scope: whole continents, other planes of existence. Threats: adult dragons, liches, demons, powerful spellcasters.
Tier 4: Masters of the World (Levels 17-20) - scope: entire multiverse, cosmic planes. Threats: ancient dragons, demon lords, archdevils, god-like entities.
エージェントを設定したら、次のセクションで実際のクエストの説明に対してテストする準備が整いました。