agent2: Port read_file tool (#35840)

Ports the read_file tool from `assistant_tools` to `agent2`. 

Note: Image support not implemented.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-08-07 20:46:47 -03:00 committed by GitHub
parent 7d4d8b8398
commit 3d662ee282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1011 additions and 4 deletions

2
Cargo.lock generated
View file

@ -172,10 +172,12 @@ dependencies = [
"gpui_tokio",
"handlebars 4.5.0",
"indoc",
"itertools 0.14.0",
"language",
"language_model",
"language_models",
"log",
"pretty_assertions",
"project",
"prompt_store",
"reqwest_client",