# assistant2: Avoid unnecessary \`String\` cloning in tool use \(\#25725\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e7df5ce61ca5ce6896b988bf3db583aef462640e

Requested commit: e7df5ce61ca5ce6896b988bf3db583aef462640e

Commit: e7df5ce61ca5ce6896b988bf3db583aef462640e

Tree: 3778472b0a85559f873024d7f9b3c3023d498b75

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Avoid unnecessary `String` cloning in tool use (#25725)

This PR removes some unnecessary `String` cloning in the tool use paths.

We now store the data in `Arc<str>`s for cheap cloning.

Release Notes:

- N/A
```

## Parents

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

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