From 9b48f63544f21da962b14cbb15a653eeb7272f38 Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Thu, 25 Apr 2024 00:25:18 +0800 Subject: [PATCH] Fix build error (#1339) * add initial version of swe-agent plugin; * rename swe cursors * split setup script into two and create two requirements * print SWE-agent command documentation * update swe-agent to default to no custom docs * update dockerfile with dependency from swe-agent * make env setup a separate script for .bashrc source * fix swe-tool plugins; add missing _split_string * remove import for temporarily fix (will add back in another pr) --- agenthub/codeact_agent/codeact_agent.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/agenthub/codeact_agent/codeact_agent.py b/agenthub/codeact_agent/codeact_agent.py index d7faecd025..9ff503f3bd 100644 --- a/agenthub/codeact_agent/codeact_agent.py +++ b/agenthub/codeact_agent/codeact_agent.py @@ -13,21 +13,10 @@ from opendevin.observation import ( AgentMessageObservation, CmdOutputObservation, ) -from opendevin.parse_commands import parse_command_file from opendevin.state import State from opendevin.sandbox.plugins import PluginRequirement, JupyterRequirement -COMMAND_DOCS = parse_command_file() -COMMAND_SEGMENT = ( - f""" - -Apart from the standard bash commands, you can also use the following special commands: -{COMMAND_DOCS} -""" - if COMMAND_DOCS is not None - else '' -) -SYSTEM_MESSAGE = f"""You are a helpful assistant. You will be provided access (as root) to a bash shell to complete user-provided tasks. +SYSTEM_MESSAGE = """You are a helpful assistant. You will be provided access (as root) to a bash shell to complete user-provided tasks. You will be able to execute commands in the bash shell, interact with the file system, install packages, and receive the output of your commands. DO NOT provide code in ```triple backticks```. Instead, you should execute bash command on behalf of the user by wrapping them with and . @@ -44,7 +33,6 @@ You can also write a block of code to a file: echo "import math print(math.pi)" > math.py -{COMMAND_SEGMENT} When you are done, execute the following to close the shell and end the conversation: exit