# Allow \`StreamingEditFileTool\` to also create files \(\#29785\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/35539847a47d23a8e657968f2b6d9421f7caffbb)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 35539847a47d23a8e657968f2b6d9421f7caffbb

Requested commit: 35539847a47d23a8e657968f2b6d9421f7caffbb

Commit: 35539847a47d23a8e657968f2b6d9421f7caffbb

Tree: 4f0c6a8f3c802ee48e179c44dcfbc180e742e05d

Author: Antonio Scandurra

Committer: GitHub

## Message

```
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>
```

## Parents

- [f619d5f02af100c34e286af294a42a01dcfb238c](https://git.cafe/gitcafe/zed/commit/f619d5f02af100c34e286af294a42a01dcfb238c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/35539847a47d23a8e657968f2b6d9421f7caffbb?format=markdown)
