Skip to content

Commit

Permalink
simplify eg
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Jan 19, 2025
1 parent 25414a9 commit 2639ca7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions openhands/agenthub/codeact_agent/prompts/default/user_prompt.j2
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
{% set DEFAULT_EXAMPLE %}
--- START OF EXAMPLE ---

USER: create a python file that prints hello world
USER: print 2

ASSISTANT:
<execute_ipython>
full_content='''
print("hello world")
'''
create_file('hello.py', full_content)
print(2)
</execute_ipython>

USER:
OBSERVATION:
(this is the beginning of the file)
1 | string = "hello world"
2 | print(string)
(this is the end of the file)
[File updated (edited at line 1). Please review the changes and make sure they are correct (correct indentation, no duplicate lines, etc). Edit the file again if necessary.]
2

ASSISTANT:
The task is completed.
Expand Down

0 comments on commit 2639ca7

Please sign in to comment.