Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(plan): optimize input prompt #81

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/midscene/src/ai-model/automation/planning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function systemPromptToTaskPlanning() {
* type: 'Hover', hover the previous element found
* param: null
* type: 'Input', input something
* param: { value: string }, Based on the value of the existing input, give the required value of the final input (may add or subtract content from the original),Typing in the input box usually requires clicking input first.
* param: { value: string }, Based on the value of the existing input, give the required value of the final input (may add or subtract content from the original).
* type: 'KeyboardPress', press a key
* param: { value: string }, the value to input or the key to press. Use (Enter, Shift, Control, Alt, Meta, ShiftLeft, ControlOrMeta, ControlOrMeta) to represent the key.
* type: 'Scroll'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"actions": [
"Planning",
"Insight / Locate",
"Action / Tap",
"Action / Input"
]
},
Expand All @@ -13,7 +12,6 @@
"actions": [
"Planning",
"Insight / Locate",
"Action / Tap",
"Action / Input",
"Action / KeyboardPress"
]
Expand Down
Loading