Skip to content

Commit

Permalink
Add example for execute_bash
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Mar 3, 2025
1 parent 4d70374 commit 73536bd
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions openhands/agenthub/codeact_agent/prompts/default/user_prompt.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set DEFAULT_EXAMPLE %}
--- START OF EXAMPLE ---
--- START OF EXAMPLE 1 ---

USER: create a sample file.

Expand All @@ -17,7 +17,26 @@ ASSISTANT:
The task is completed.
<finish></finish>

--- END OF EXAMPLE ---
--- END OF EXAMPLE 1 ---

--- START OF EXAMPLE 2 ---

USER: echo "Hello, world!"

ASSISTANT:
<execute_bash>
echo "Hello, world!"
</execute_bash>

USER:
OBSERVATION:
Hello, world!

ASSISTANT:
The task is completed.
<finish></finish>

--- END OF EXAMPLE 2 ---
{% endset %}
Here is an example of how you can interact with the environment for task solving:
{{ DEFAULT_EXAMPLE }}
Expand Down

0 comments on commit 73536bd

Please sign in to comment.