Instructions

Les instructions d'agent définissent le processus à suivre pour atteindre l'objectif de l'agent.

Chaque étape contient une instruction en langage naturel pouvant inclure l'un des éléments suivants:

  • Instruction de base compréhensible par le LLM.
  • Instruction permettant de rediriger l'utilisateur vers un autre agent. Les agents sont référencés sous la forme ${AGENT: agent_name}.
  • Une instruction d'utilisation d'un outil spécifique. Les outils sont référencés sous la forme ${TOOL: tool_name}.
  • Instruction permettant de rediriger l'utilisateur vers un flux Dialogflow CX. Les flux sont référencés sous la forme ${FLOW: flow_name}.

La description de chaque étape commence par -, et vous pouvez définir des sous-instructions à l'aide de mises en retrait.

Exemple :

- 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}.