ZIm/crates/assistant_tools/src/streaming_edit_file_tool/description.md
Antonio Scandurra 35539847a4
Allow StreamingEditFileTool to also create files (#29785)
Refs #29733 

This pull request introduces a new field to the `StreamingEditFileTool`
that lets the model create or overwrite a file in a streaming way. When
one of the `assistant.stream_edits` setting / `agent-stream-edits`
feature flag is enabled, we are going to disable the `CreateFileTool` so
that the agent model can only use `StreamingEditFileTool` for file
creation.

Release Notes:

- N/A

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Oleksiy Syvokon <oleksiy.syvokon@gmail.com>
2025-05-02 09:57:04 +00:00

459 B

This is a tool for creating a new file or editing an existing file. For moving or renaming files, you should generally use the terminal tool with the 'mv' command instead.

Before using this tool:

  1. Use the read_file tool to understand the file's contents and context

  2. Verify the directory path is correct (only applicable when creating new files):

    • Use the list_directory tool to verify the parent directory exists and is the correct location