Skip to content

Commit 62061fc

Browse files
committed
chore: update prompt
1 parent 077c665 commit 62061fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/midscene/src/ai-model/prompt/llm-planning.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ By viewing the page screenshot and description, you should consider this and out
130130
131131
* The main steps should be: tap the switch button, sleep, and tap the 'English' option
132132
* The language switch button is shown in the screenshot, but it's not marked with a rectangle. So we have to use the page description to find the element. By carefully checking the context information (coordinates, attributes, content, etc.), you can find the element.
133-
* The "English" option button is not shown in the screenshot now, it means it may only show after the previous actions are finished. So put \`null\` in the \`locate\` field of the last action.
133+
* The "English" option button is not shown in the screenshot now, it means it may only show after the previous actions are finished. So don't plan any action to do this.
134+
* Log what these action do: Click the language switch button to open the language options. Wait for 1 second.
134135
* The task cannot be accomplished (because we cannot see the "English" option now), so the \`finish\` field is false.
135136
136137
{{
@@ -149,7 +150,7 @@ By viewing the page screenshot and description, you should consider this and out
149150
],
150151
"error": null,
151152
"finish": false,
152-
"log": "Click the language switch button to open the language options. Wait for 1 second to ensure the language options are displayed",
153+
"log": "Click the language switch button to open the language options. Wait for 1 second",
153154
}}
154155
155156
### Example: What NOT to do
@@ -279,7 +280,8 @@ export const planSchema: ResponseFormatJSONSchema = {
279280
},
280281
log: {
281282
type: 'string',
282-
description: 'Log what these action do',
283+
description:
284+
'Log what these planned actions do. Do not include further actions that have not been planned.',
283285
},
284286
error: {
285287
type: ['string', 'null'],

0 commit comments

Comments
 (0)