Skip to content

Commit 914c718

Browse files
authored
Update documentation to clarify instructions are appended (#1709)
1 parent c9cd01a commit 914c718

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/en/tutorials/building_good_agents.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Put yourself in the shoes of your model: if you were the model solving the task,
166166

167167
Would you need detailed instructions?
168168

169-
- If the instruction is to always be given to the agent (as we generally understand a system prompt to work): you can pass it as a string under argument `instructions` upon agent initialization.
169+
- If the instruction is to always be given to the agent (as we generally understand a system prompt to work): you can pass it as a string under argument `instructions` upon agent initialization. *(Note: instructions are appended to the system prompt, not replacing it.)*
170170
- If it's about a specific task to solve: add all these details to the task. The task could be very long, like dozens of pages.
171171
- If it's about how to use specific tools: include it in the `description` attribute of these tools.
172172

@@ -393,6 +393,8 @@ But generally it's just simpler to pass argument `instructions` upon agent inita
393393
agent = CodeAgent(tools=[], model=InferenceClientModel(model_id=model_id), instructions="Always talk like a 5 year old.")
394394
```
395395

396+
Note that `instructions` are appended to the system prompt, not replacing it.
397+
396398

397399
### 4. Extra planning
398400

0 commit comments

Comments
 (0)