Instructions

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

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

  • Instruction de base que le LLM peut comprendre.
  • Instruction pour acheminer l'utilisateur vers un autre agent. Les agents sont référencés sous la forme suivante : ${AGENT: agent_name}
  • Des instructions pour utiliser un outil spécifique. Les outils sont référencés sous la forme suivante : ${TOOL: tool_name}
  • Instruction permettant d'acheminer l'utilisateur vers un flux Dialogflow CX. Les flux sont référencés sous la forme suivante : ${FLOW: flow_name}

La description de chaque étape commence par -, et vous pouvez définir des sous-instructions par 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}.