Rovo エージェントに対する指示を記述する

必要に応じてカスタマイズするためにエージェントを作成 (または編集) するときには、指示を使用します。指示では次のような項目を定義します。

  • エージェントへの期待値やエージェントの目的

  • 制限事項 - エージェントにしてほしいこととしてほしくないこと

  • エージェントがさまざまな入力にどのように反応するか (たとえば、特定のことを尋ねられたときに、特定の方法で返答する必要があるなど)

  • エージェントがユーザーとどのように接するべきか (たとえば、「いつもくだけた感じで反応する」など、エージェントに特定の口調を持たせたい場合など)

If you’re looking for tips on chatting with agents and the kinds of prompts you’d write day-to-day, see Chat with an agent.

You provide instructions in a few key places in your agent.

  • To your agent, in the Instructions field, to provide it with goals, behaviors, procedures, etc.

  • Within the Trigger and Instructions fields of a Subagent, so your agent knows when to hand off a task to a subagent, and the subagent knows what to do.

ヒントとベスト プラクティス

適切な指示を書くにはコツがいります。ほとんどの場合、エージェントを思い通りに操作するには、指示を数回繰り返す必要があります。

エージェントをうまく操作するための指示を書くヒントは以下のとおりです。

  1. 最初は指示を比較的短くする

    1. プロンプトが短いほど繰り返すのも簡単になります (プロンプトに小さな変更を加えると、エージェントのパフォーマンスをどの程度改善または悪化するかを追跡できます)。プロンプトが長くなると、トラブルシューティングや繰り返しが難しくなります。

    2. エージェントには特定のタスクだけを任せるようにしてください。指示が多すぎてプロンプトが長くなると、出力に一貫性がなくなる可能性があります。これは、エージェントがすべての指示を実行するのではなく、どこを優先するかを選択するためです。

  2. 役割、タスク、そのタスクを完了するための関連する背景情報を説明する

    1. 役割: エージェントの役割とは、エージェントに与えるタスクの名前のことです。たとえば、プロジェクトに関する意思決定をサポートするエージェントを作る場合は次のようになります。
      「あなたは偏りのない意思決定を行うのが得意なプロジェクト マネージャーです」

    2. Job: Jobs can be written as one or more ways you expect your agent to help people. Jobs could be divided up amongst subagents or contained within the agent's instructions. To use the previous example, you might say:
      “You have the following jobs: Reviewing an existing decision, Finding related decisions, Providing additional resources or best practices to help with effective decision making.”

    3. Context: This is where you can choose to go very detailed, or keep it light. Context is essentially any extra detail you think your agent might need to deliver on its jobs. Context could include referencing the agent's knowledge or tools, and giving specific examples with example outputs.

この画像は指示を構成するさまざまな要素の概要を示したもので、要素ごとに色分けされています。

 

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。