Skip to content

Commit

Permalink
prompt fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vyokky committed Jun 25, 2024
1 parent 3f6409d commit d50872d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions ufo/prompts/share/lite/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ click_input:
class_name: |-
ClickInputCommand
usage: |-
[1] API call: click_input(button=, double)
[1] API call: click_input(button: str, double: bool)
[2] Args:
- button: 'The mouse button to click. One of ''left'', ''right'', ''middle'' or ''x'' (Default: ''left'')'
- double: 'Whether to perform a double click or not (Default: False)'
Expand All @@ -15,11 +15,11 @@ click_input:
set_edit_text:
summary: |-
"set_edit_text" is to add new text to the control item. If there is already text in the control item, the new text will be appended to the end of the existing text.
"set_edit_text" is to add new text to the control item. If there is already text in the control item, the new text will append to the end of the existing text.
class_name: |-
SetEditTextCommand
usage: |-
[1] API call: set_edit_text(text="")
[1] API call: set_edit_text(text: str="The text to input.")
[2] Args:
- text: The text input to the Edit control item. You must also use Double Backslash escape character to escape the single quote in the string argument.
[3] Example: set_edit_text(text="Hello World. \\n I enjoy the reading of the book 'The Lord of the Rings'. It's a great book.")
Expand All @@ -42,26 +42,27 @@ annotation:
summary:
summary: |-
"summary" is to summarize your observation of the current application window base on the clean screenshot, or base on available control items.
"summary" is to summarize your observation of the current application window base on the clean screenshot, or base on available control items. You must use your vision to summarize the image with required information using the argument "text". Do not add information that is not in the image.
class_name: |-
SummaryCommand
usage: |-
[1] API call: summary(text="")
[2] Args: None
[1] API call: summary(text: str="Your description of the image.")
[2] Args:
- text: The text description of the image with required information.
[3] Example: summary(text="The image shows a workflow of a AI agent framework. \\n The framework has three components: the 'data collection', the 'data processing' and the 'data analysis'.")
[4] Available control item: All control items.
[5] Return: the summary of the image.
texts:
summary: |-
"texts" is to get the text of the control item. It typical apply to Edit and Document control item when user request is to get the text of the control item.
"texts" is to get the text of the control item. It typical apply to Edit and Document control item when user request is to get the text of the control item. This only works for Edit and Document control items. If you want to get the text of other control items, you can use the "summary" API to describe the required information based on the screenshot by yourself.
class_name: |-
GetTextsCommand
usage: |-
[1] API call: texts()
[2] Args: None
[3] Example: texts()
[4] All control items.
[4] Available control item: Edit and Document control items.
[5] Return: the text content of the control item.
wheel_mouse_input:
Expand All @@ -70,7 +71,7 @@ wheel_mouse_input:
class_name: |-
WheelMouseInputCommand
usage: |-
[1] API call: wheel_mouse_input()
[1] API call: wheel_mouse_input(wheel_dist: int)
[2] Args:
- wheel_dist: The distance to scroll. Positive values indicate upward scrolling, negative values indicate downward scrolling.
[3] Example: wheel_mouse_input(wheel_dist=-20)
Expand Down

0 comments on commit d50872d

Please sign in to comment.