fix sequential click agent bug (#2939)

This commit is contained in:
LawyZheng
2025-07-15 00:57:48 +08:00
committed by GitHub
parent 974d1d2fca
commit 1ecafbdf3a
3 changed files with 15 additions and 3 deletions

View File

@@ -19,14 +19,14 @@ Reply in JSON format with the following keys:
"reasoning": str, // The reasoning behind the current single action. Be specific, referencing the value and the element id in your reasoning. Mention 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
"id": str, // The id of the element to take action on. The id has to be one from {{ "the emerging HTML elements list" if new_elements_ids else "the HTML elements list" }}.
"action_type": str, // It's a string enum: "CLICK", "INPUT_TEXT". "CLICK" is an option you'd like to click to choose. "INPUT_TEXT" is an element you'd like to input text into for searching, but it only should be used when there's no valid option to click.
"action_type": str, // It's a string enum: "CLICK", "INPUT_TEXT"{{' ,"COMPLETE"' if support_complete_action else ""}}. "CLICK" is an option you'd like to click to choose. "INPUT_TEXT" is an element you'd like to input text into for searching, but it only should be used when there's no valid option to click.{{ ' "COMPLETE" means the user has completed user goal.' if support_complete_action else "" }}
"value": str, // The value to select.{% if target_value %}
"relevant": bool, // True if the value you select is relevant to the target value, otherwise False. If the value is a fallback option according to the guidelines, it's still relevant.{% endif %}
}
Context:
```
Select an option for "{{ field_information }}". It's {{ "a required" if required_field else "an optional" }} field.
Select an option for "{{ field_information }}"{{" if user goal has not been completed" if support_complete_action else ""}}. It's {{ "a required" if required_field else "an optional" }} field.
```
{% if target_value %}
Target value: