From 2639ca7102c10da32272e11926c3c3e4e19afdad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Sun, 19 Jan 2025 20:22:56 +0530 Subject: [PATCH] simplify eg --- .../codeact_agent/prompts/default/user_prompt.j2 | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/openhands/agenthub/codeact_agent/prompts/default/user_prompt.j2 b/openhands/agenthub/codeact_agent/prompts/default/user_prompt.j2 index 964df6c3cef3..42dc8a4fb786 100644 --- a/openhands/agenthub/codeact_agent/prompts/default/user_prompt.j2 +++ b/openhands/agenthub/codeact_agent/prompts/default/user_prompt.j2 @@ -1,23 +1,16 @@ {% set DEFAULT_EXAMPLE %} --- START OF EXAMPLE --- -USER: create a python file that prints hello world +USER: print 2 ASSISTANT: -full_content=''' -print("hello world") -''' -create_file('hello.py', full_content) +print(2) 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.