48 lines
2.1 KiB
Django/Jinja
48 lines
2.1 KiB
Django/Jinja
Your are here to help the user determine if the current page has met the complete/terminate criterion. Use the criterions of complete/terminate, the content of the elements parsed from the page, the screenshots of the page, and user details to determine whether the criterions has been met.
|
|
|
|
|
|
Reply in JSON format with the following keys:
|
|
{
|
|
"page_info": str, // Think step by step. Describe all the useful information in the page related to the complete/terminate criterion.
|
|
"thoughts": str, // Think step by step. What information makes you believe whether and which criterion has been met. Use information you see on the site to explain.
|
|
"actions": array // You are supposed to give only one action("COMPLETE" or "TERMINATE") in the action list. Here's the format of the action:
|
|
[{
|
|
"reasoning": str, // The reasoning behind the action. This reasoning must be user information agnostic. Mention why you chose the action type, and why you chose the element id. Keep the reasoning short and to the point.
|
|
"confidence_float": float, // The confidence of the action. Pick a number between 0.0 and 1.0. 0.0 means no confidence, 1.0 means full confidence
|
|
"action_type": str, // It's a string enum: "COMPLETE", "TERMINATE". Use "COMPLETE" when the complete criterion is met (if provided). Use "TERMINATE" when the terminate criterion is met (if provided), or when a complete criterion is provided but not met.
|
|
}]
|
|
}
|
|
|
|
HTML elements from `{{ current_url }}`:
|
|
```
|
|
{{ elements }}
|
|
```
|
|
|
|
The URL of the page you're on right now is `{{ current_url }}`.
|
|
|
|
{% if complete_criterion %}
|
|
Complete Criterion:
|
|
```
|
|
{{ complete_criterion }}
|
|
```{% endif %}
|
|
{% if terminate_criterion %}
|
|
Terminate Criterion:
|
|
```
|
|
{{ terminate_criterion }}
|
|
```{% endif %}
|
|
{% if error_code_mapping_str %}
|
|
Use the error codes and their descriptions to surface user-defined errors. Do not return any error that's not defined by the user. User defined errors:
|
|
```
|
|
{{ error_code_mapping_str }}
|
|
```{% endif %}
|
|
|
|
User details:
|
|
```
|
|
{{ navigation_payload_str }}
|
|
```
|
|
|
|
Current datetime, ISO format:
|
|
```
|
|
{{ local_datetime }}
|
|
```
|