Skip to content

Commit d236b8f

Browse files
authored
Clarify output instructions for the Read tool.
1 parent 49b1bf4 commit d236b8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stage_descriptions/base-03-md6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ When you detect a `tool_calls` array in the response:
5151
2. **Parse the function name**: Read the function name to determine which tool to execute.
5252
3. **Parse the arguments**: Parse the function arguments as a JSON string to get the parameters.
5353
4. **Execute the tool**: Your program must perform the action requested. For the `Read` tool, use your language's file system library to read the file at the requested `file_path`.
54-
5. **Output the result**: Print the tool execution result. For the `Read` tool, print the raw file contents to stdout.
54+
5. **Output the result**: Print the tool execution result. For the `Read` tool, print the raw file contents directly to stdout (just the contents, with no labels or formatting).
5555

5656
In previous stages, you printed the message content directly to stdout. Now that the model's response can include tool calls, you should **only print the message content if there's no `tool_calls` array** in the response.
5757

0 commit comments

Comments
 (0)