Skip to content

Commit

Permalink
fix: clarified return format for subagent
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 13, 2024
1 parent 770ed2c commit e5e2a9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gptme/tools/subagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,13 @@ def run_subagent():

# add the return prompt
return_prompt = """When done with the task, please return a JSON response of this format:
```json
{
result: 'A description of the task result/outcome',
status: 'success' | 'failure',
}"""
}
```"""
initial_msgs[0].content += "\n\n" + return_prompt

chat(
Expand Down

0 comments on commit e5e2a9a

Please sign in to comment.