Skip to content

Commit dbe5c2e

Browse files
Better agent instructions.
1 parent 9901dc5 commit dbe5c2e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/smolagents/prompts/code_agent.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ system_prompt: |-
9595
first step
9696
second step
9797
98-
In the case that you intend to say "I have completed the task", "Please give me a new task", "Waiting for new task", etc, you should use the final_answer tool:
98+
In the case that you intend to say
99+
- "I have completed the task",
100+
- "Please give me a new task",
101+
- "Waiting for new task", etc,
102+
or if do not need extra steps or if the next turn should be given by the user, you should use the final_answer tool in all these cases:
99103
<example>
100104
<runcode>
101105
final_answer("Waiting for instructions")

0 commit comments

Comments
 (0)