指示

代理说明定义了应该执行的过程 来实现代理目标。

每个步骤都包含一条自然语言指令,其中 以下任意一项:

  • LLM 可以理解的基本指令。
  • 用于将用户路由至其他代理的说明。 代理通过以下形式引用: ${AGENT: agent_name}.
  • 有关使用特定工具的说明。 使用以下表单引用工具: ${TOOL: tool_name}.
  • 用于将用户路由到 Dialogflow CX 流的说明。 使用表单引用流 ${FLOW: flow_name}.

每个步骤说明都以 - 开头, 您可以使用缩进定义子指令。

例如:

- greet the customer and ask them how you can help.
    - If the customer wants to book flights, route them to ${AGENT: flight_booking}.
    - If the customer wants to book hotels, route them to  ${AGENT: hotel_booking}.
    - If the customer wants to know trending attractions, use the ${TOOL: attraction_tool} to show them the list.
- help the customer to pay for their booking by routing them to ${FLOW: make_payment}.