Michael Sloan
609c528ceb
Refactor markdown formatting utilities to avoid building intermediate strings ( #29511 )
...
These were nearly always used when using `format!` / `write!` etc, so it
makes sense to not have an intermediate `String`.
Release Notes:
- N/A
2025-04-27 19:04:51 +00:00
8366cd0b52
agent: Render diffs for the edit file tool ( #29234 )
...
This PR implements the `ToolCard` for the edit file tool, which allow us
to display an editor with a diff in the thread view with the changes
performed by the model.
- [x] Fix buffer sometimes displaying empty
- [x] Stop buffer from scrolling together with the thread
- [x] Fix multibuffer header sometimes appearing
- [x] Fix buffer height issue
- [x] Implement "full height" expand button
- [x] Add "Jump To File" functionality
- [x] Polish and refine styles
Release Notes:
- agent: Added diff preview cards in the thread view for edits performed
by the agent.
---------
Co-authored-by: João Marcos <marcospb19@hotmail.com >
Co-authored-by: Richard Feldman <oss@rtfeldman.com >
Co-authored-by: Agus Zubiaga <hi@aguz.me >
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com >
2025-04-23 15:43:33 -03:00
Bennet Bo Fenner
5e094553fa
agent: Return ToolResult from run inside Tool ( #28763 )
...
This is just a refactor which adds no functionality.
We now return a `ToolResult` from `Tool > run(...)`. For now this just
wraps the output task in a struct. We'll use this to implement custom
rendering of tools, see #28621 .
Release Notes:
- N/A
2025-04-15 14:28:09 +00:00
Bennet Bo Fenner
2603f36737
agent: Improve compatibility when using MCP servers with Gemini models ( #28700 )
...
WIP
Release Notes:
- agent: Improve compatibility when using MCPs with Gemini models
2025-04-14 21:55:25 +02:00
Bennet Bo Fenner
47eaf274d6
agent: Only require confirmation for batch tool when subset of tool calls require confirmation ( #28363 )
...
Release Notes:
- agent: Only require confirmation for batch tool when subset of tool
calls require confirmation
2025-04-08 21:37:10 +00:00
Piotr Osiewicz
dc64ec9cc8
chore: Bump Rust edition to 2024 ( #27800 )
...
Follow-up to https://github.com/zed-industries/zed/pull/27791
Release Notes:
- N/A
2025-03-31 20:55:27 +02:00
Bennet Bo Fenner
c8a9a74e6a
Add tool calling support for Gemini models ( #27772 )
...
Release Notes:
- N/A
2025-03-31 17:46:42 +02:00
Richard Feldman
9eacac62a9
Escape markdown in tools' ui_text ( #27502 )
...
Escape markdown in tools' `ui_text`
<img width="628" alt="Screenshot 2025-03-26 at 10 43 23 AM"
src="https://github.com/user-attachments/assets/bb694821-aae7-4ccf-a35a-a3317b0222d5 "
/>
Release Notes:
- N/A
2025-03-26 11:27:02 -04:00
Agus Zubiaga
46e86f003f
assistant tools: Add Tool::icon method instead of matching on name ( #27444 )
...
Release Notes:
- N/A
2025-03-25 18:17:36 +00:00
4c86cda909
Prompt before running some tools ( #27284 )
...
Also includes some fixes for how the Lua tool was being generated.
<img width="644" alt="Screenshot 2025-03-21 at 6 26 18 PM"
src="https://github.com/user-attachments/assets/51bd1685-5b3f-4ed3-b11e-6fa8017847d4 "
/>
Release Notes:
- N/A
---------
Co-authored-by: Ben <ben@zed.dev >
Co-authored-by: Agus Zubiaga <agus@zed.dev >
Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com >
Co-authored-by: Danilo Leal <daniloleal09@gmail.com >
Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com >
2025-03-22 00:05:34 -04:00
Richard Feldman and Agus Zubiaga
e3578fc44a
Display what the tool is doing ( #27120 )
...
<img width="639" alt="Screenshot 2025-03-19 at 4 56 47 PM"
src="https://github.com/user-attachments/assets/b997f04d-4aff-4070-87b1-ffdb61019bd1 "
/>
Release Notes:
- N/A
---------
Co-authored-by: Agus Zubiaga <hi@aguz.me >
2025-03-20 09:16:39 -04:00
Marshall Bowers
ed4e654fdf
assistant_tools: Add fetch tool ( #26999 )
...
This PR adds a new `fetch` tool to the set of tools the Assistant has
available.
This tool accepts a URL and fetches the content as Markdown.
<img width="1394" alt="Screenshot 2025-03-18 at 11 52 21 AM"
src="https://github.com/user-attachments/assets/e5bcde14-a0dd-4835-9d42-8f45def68f4d "
/>
<img width="1394" alt="Screenshot 2025-03-18 at 11 52 37 AM"
src="https://github.com/user-attachments/assets/3bcce4f5-f61b-40d7-8b30-2c673ce3c06a "
/>
Release Notes:
- N/A
2025-03-18 16:25:51 +00:00