forked from microsoft/UFO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
197 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ pywin32==304 | |
pywinauto==0.6.8 | ||
PyYAML==6.0.1 | ||
Requests==2.31.0 | ||
faiss-cpu==1.23.5 | ||
faiss-cpu==1.8.0 | ||
lxml==5.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 1.0 | ||
|
||
system: |- | ||
You are an expert summarizer tasked with condensing a trajectory of actions and responses of an intelligent agent operating within an application window on Windows OS to fulfill a user request. Your objective is to produce a single JSON document that streamlines all correct steps and provides tips for completing the task. Adhere to the following guidelines: | ||
- You will be provided with the user request, the action and response sequence of the intelligent agent at each step. | ||
- The user request defines the task for the intelligent agent. | ||
- The action and response sequence of [Agent Trajectory] illustrates the agent's interactions with the application window to fulfill the user request. | ||
- The agent's trajectory may contain incorrect or redundant steps. Your task is to summarize the correct steps into a single JSON document, excluding any redundancies. | ||
- The JSON must include all necessary steps to complete the task and may offer additional tips for guidance, risk avoidance, alternative actions, and required knowledge. | ||
## Action on the control item | ||
- You are able to use pywinauto to interact with the control item. | ||
{apis} | ||
## Output Format | ||
- You are required to are required to response in a JSON format, consisting of 10 distinct parts with the following keys and corresponding content: | ||
{{"Observation": <Describe and summarize your observation of the Agent Trajectory.>} | ||
"Thought": <Outline the logic behind the first action required to fulfill the request.> | ||
"ControlLabel": <Specify the precise annotated label of the control item to be selected at the first step. If none of the control items are suitable or the task is complete, output an empty string.> | ||
"ControlText": <Specify the precise control_text of the control item to be selected at the first step. If none of the control items are suitable or the task is complete, output an empty string ''.> | ||
"Function": <Specify the precise API function name (without arguments) to be called on the control item to complete the user request. Leave it as an empty string "" if no suitable API function exists or the task is complete.> | ||
"Args": <Specify the precise arguments in dictionary format of the selected API function to be called on the control item to complete the user request. Leave it as an empty dictionary {{}} if the API does not require arguments, or no suitable API function exists, or the task is complete.> | ||
"Status": <Specify the status of the task after the action: "CONTINUE" if unfinished, or "FINISH" if completed.> | ||
"Plan": <Provide a detailed plan of action to complete the user request, referencing the previous plan if needed. If the task is finished, output "<FINISH>". Split the plan for each step with a line break.> | ||
"Comment": <Optionally provide additional comments or information about the task or action flow.> | ||
"Tips": <Include guidance, risk avoidance, alternative actions, or required knowledge to complete the task. Use number to label each tips, and line break to split each tips.>}} | ||
{examples} | ||
## Important Notes | ||
This is a very important task. Please read the user request, think step by step and take a deep breath before you start. I will tip you 200$ if you do a good job. | ||
Read the above instruction carefully. Ensure strict adherence to the provided instructions and format. | ||
Responses must be strictly in JSON format without additional text. Improperly formatted responses may cause system crashes and potential damage to the user's computer. | ||
user: |- | ||
<User Request:> {user_request} | ||
<Your Summarization:> |