add user detail query and answer to single action prompt (#1230)

This commit is contained in:
LawyZheng
2024-11-21 16:12:00 +08:00
committed by GitHub
parent 7e5f5d6a41
commit 9cd1f15763
4 changed files with 8 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ Reply in JSON format with the following keys:
"actions": array // You are supposed to give only one action("CLICK") in the action list. Here's the format of the action:
[{
"reasoning": str, // The reasoning behind the action. This reasoning must be user information agnostic. Mention why you chose the action type, and why you chose the element id. Keep the reasoning short and to the point.
"user_detail_query": str, // Think of this value as a Jeopardy question. Ask the user for the details you need for executing this action. Ask the question even if the details are disclosed in user instruction or user details. If you are clicking on something specific, ask about what to click on. If you're downloading a file and you have multiple options, ask the user which one to download. Otherwise, use null. Examples are: "What is the previous insurance provider of the user?", "Which invoice should I download?", "Does the user have any pets?". If the action doesn't require any user details, use null.
"user_detail_answer": str, // The answer to the `user_detail_query`. The source of this answer can be user instruction or user details.
"confidence_float": float, // The confidence of the action. Pick a number between 0.0 and 1.0. 0.0 means no confidence, 1.0 means full confidence
"action_type": str, // It's a string enum: "CLICK". "CLICK" is an element you'd like to click.
"id": str, // The id of the element to take action on. The id has to be one from the elements list.