Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions autogpt/commands/execute_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,14 @@ def execute_python_file(filename: str, agent: Agent) -> str:
logger.debug(f"Running {file_path} in a {image_name} container...")
container: DockerContainer = client.containers.run(
image_name,
["python", str(file_path.relative_to(agent.workspace.root))],
[
"python",
file_path.relative_to(agent.workspace.root).as_posix(),
],
volumes={
agent.config.workspace_path: {
"bind": "/workspace",
"mode": "ro",
"mode": "rw",
}
},
working_dir="/workspace",
Expand Down
4 changes: 2 additions & 2 deletions prompt_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ constraints: [
'~4000 word limit for short term memory. Your short term memory is short, so immediately save important information to files.',
'If you are unsure how you previously did something or want to recall past events, thinking about similar events will help you remember.',
'No user assistance',
'Exclusively use the commands listed below e.g. command_name'
'Exclusively use the commands listed below e.g. command_name!'
]
resources: [
'Internet access for searches and information gathering.',
Expand All @@ -13,5 +13,5 @@ performance_evaluations: [
'Continuously review and analyze your actions to ensure you are performing to the best of your abilities.',
'Constructively self-criticize your big-picture behavior constantly.',
'Reflect on past decisions and strategies to refine your approach.',
'Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.'
'Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps!'
]