플레이북 안내

플레이북 요청 사항은 플레이북 목표 달성을 위해 수행되어야 하는 프로세스를 정의합니다.

각 단계에는 다음과 같은 자연어 안내가 포함됩니다.

  • LLM이 이해할 수 있는 기본 안내
  • 사용자를 다른 플레이북으로 연결하는 안내. 플레이북은 ${PLAYBOOK: playbook_name} 형식을 사용해서 참조됩니다.
  • 특정 플레이북 도구 사용 안내 도구는 ${TOOL: tool_name} 형식을 사용해서 참조됩니다.
  • 사용자를 흐름으로 라우팅하는 명령입니다. 흐름은 ${FLOW: flow_name} 형식을 사용하여 참조됩니다.
  • 플레이북 매개변수에 대한 참조입니다. 매개변수는 $parameter_name 형식을 사용하여 참조됩니다.
  • 코드 블록을 호출하는 명령입니다. 코드 블록은 `function_name` 형식을 사용하여 참조됩니다.

각 단계 설명은 -숫자가 지정된 단계(선택사항)로 시작하며 들여쓰기를 사용하여 하위 명령을 정의할 수 있습니다.

샘플:

- greet the customer and ask them how you can help.
    - If the customer wants to book flights, route them to ${PLAYBOOK: flight_booking}.
    - If the customer wants to book hotels, route them to  ${PLAYBOOK: 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}.

안내 단계

명령에 구조를 추가하기 위해 계층적 번호 지정 시스템으로 단계를 정의할 수 있습니다(선택사항). 단계 번호를 제공하지 않은 경우 코드 블록이 특정 단계를 참조하는 경우 단계 순서를 사용하여 단계 위치 값을 결정합니다.

샘플:

- Step 1. Greet the user and ask how you can assist them today.
- Step 2. Collect the user's basic flight information in the following order
  from (a) to (f). Do not deviate from this order, and do not proceed until the
  user has specified each piece of information. Ask clarifying questions if
  necessary, and make sure that the answers the user give make sense.
    - Step 2.1 The traveler's $origin city. Do not proceed until the user has
      made this clear.
    - Step 2.2 The traveler's $destination city. Do not proceed until the user
      has made this clear.
    - Step 2.3 When the traveler will leave their origin city. If the user
      specifies one departure date, collect their $earliest_departure_date. If
      the user specifies a range of departure dates, collect their
      $earliest_departure_date and $latest_departure_date. Unless otherwise
      specified, assume all dates are from 2024 to 2025. If the user provides
      a vague departure date, ask them follow-up questions to determine their
      precise departure date(s). All dates should be in YYYY-MM-DD format. If
      the user does not provide their departure date(s) in YYYY-MM-DD format,
      then convert the dates for them.
    - Step 2.4 When the traveler will leave from their destination city and
      return home. If the user specifies one return date, collect their
      $earliest_return_date. If the user specifies a range of return dates,
      collect their $earliest_return_date and $latest_return_date. Unless
      otherwise specified, assume all dates are from 2024 to 2025. If the user
      provides a vague return date or a vague return date range, ask them
      follow-up questions to determine their precise return date(s). All dates
      should be in YYYY-MM-DD format. If the user does not provide their return
      dates in YYYY-MM-DD format, then convert the dates for them.
    - Step 2.5 The $num_adult_passengers the user wishes to buy tickets for. All
      people 12 years old or older are adult passengers. This value must be a
      precise whole number. Do not proceed until the user has provided a valid
      number of adult passengers.
    - Step 2.6 The $num_child_passengers the user wishes to buy tickets for.
      This value must be a precise whole number. Do not proceed until the user
      has provided a valid number of child passengers.
    - Assume the user is an adult.