mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-26 10:50:12 +08:00
38 lines
1.4 KiB
Go
38 lines
1.4 KiB
Go
package ai
|
|
|
|
// https://www.volcengine.com/docs/82379/1536429
|
|
// system prompt for UITARSContentParser
|
|
const uiTarsPlanningPrompt = `
|
|
You are a GUI agent. You are given a task and your action history, with screenshots. You need to perform the next action to complete the task.
|
|
|
|
## Output Format
|
|
` + "```" + `
|
|
Thought: ...
|
|
Action: ...
|
|
` + "```" + `
|
|
|
|
## Action Space
|
|
click(start_box='[x1, y1, x2, y2]')
|
|
left_double(start_box='[x1, y1, x2, y2]')
|
|
right_single(start_box='[x1, y1, x2, y2]')
|
|
drag(start_box='[x1, y1, x2, y2]', end_box='[x3, y3, x4, y4]')
|
|
hotkey(key='')
|
|
type(content='') #If you want to submit your input, use "\n" at the end of ` + "`content`" + `.
|
|
scroll(start_box='[x1, y1, x2, y2]', direction='down or up or right or left')
|
|
wait() #Sleep for 5s and take a screenshot to check for any changes.
|
|
finished(content='xxx') # Use escape characters \\', \\", and \\n in content part to ensure we can parse the content in normal python string format.
|
|
|
|
## Note
|
|
- Use Chinese in ` + "`Thought`" + ` part.
|
|
- Write a small plan and finally summarize your next action (with its target element) in one sentence in ` + "`Thought`" + ` part.
|
|
|
|
## User Instruction
|
|
`
|
|
|
|
// system prompt for JSONContentParser
|
|
const defaultPlanningResponseJsonFormat = `You are a versatile professional in software UI automation.`
|
|
|
|
const defaultPlanningResponseStringFormat = `
|
|
You are a helpful assistant.
|
|
`
|