Skip to content

Commit

Permalink
Headless or endless? Rewrite auto continue response in headless mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
li-boxuan authored Dec 28, 2024
1 parent 6a4442e commit ebb2d86
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions openhands/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,14 @@ def auto_continue_response(
try_parse: Callable[[Action | None], str] | None = None,
) -> str:
"""Default function to generate user responses.
Returns 'continue' to tell the agent to proceed without asking for more input.
Tell the agent to proceed without asking for more input, or finish the interaction.
"""
return 'continue'
message = (
'Please continue on whatever approach you think is suitable.\n'
'If you think you have solved the task, please finish the interaction.\n'
'IMPORTANT: YOU SHOULD NEVER ASK FOR HUMAN RESPONSE.\n'
)
return message


if __name__ == '__main__':
Expand Down

0 comments on commit ebb2d86

Please sign in to comment.