ZIm/crates/assistant/src
David Soria Parra 8a96ea25c4
context_servers: Support tools (#19548)
This PR depends on #19547 

This PR adds support for tools from context servers. Context servers are
free to expose tools that Zed can pass to models. When called by the
model, Zed forwards the request to context servers. This allows for some
interesting techniques. Context servers can easily expose tools such as
querying local databases, reading or writing local files, reading
resources over authenticated APIs (e.g. kubernetes, asana, etc).

This is currently experimental. 

Things to discuss
* I want to still add a confirm dialog asking people if a server is
allows to use the tool. Should do this or just use the tool and assume
trustworthyness of context servers?
* Can we add tool use behind a local setting flag?

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-28 10:37:58 -04:00
..
context Fix more failure cases of assistant edits (#19653) 2024-10-25 14:30:34 -07:00
slash_command assistant: Make /file emit events as they occur (#19743) 2024-10-25 11:02:27 -04:00
tools context_servers: Support tools (#19548) 2024-10-28 10:37:58 -04:00
assistant.rs context_servers: Support tools (#19548) 2024-10-28 10:37:58 -04:00
assistant_panel.rs Allow editor blocks to replace ranges of text (#19531) 2024-10-25 12:29:25 +02:00
assistant_settings.rs Restructure assistant edits to show all changes in a proposed-change editor (#18240) 2024-10-17 13:18:13 -04:00
context.rs assistant: Update SlashCommand trait with streaming return type (#19652) 2024-10-23 21:26:50 -04:00
context_store.rs ssh remoting: Fix cmd-o (#18308) 2024-09-24 16:23:08 -06:00
inline_assistant.rs Update placeholder text with key bindings to focus context panel and navigate history (#19447) 2024-10-25 14:09:21 -04:00
model_selector.rs assistant: Tweak the model selector design (#19704) 2024-10-24 19:37:09 -03:00
patch.rs Fix more failure cases of assistant edits (#19653) 2024-10-25 14:30:34 -07:00
prompt_library.rs Fix some issues with branch buffers (#18945) 2024-10-09 16:55:25 -07:00
prompts.rs Update placeholder text with key bindings to focus context panel and navigate history (#19447) 2024-10-25 14:09:21 -04:00
slash_command.rs Add a slash command for automatically retrieving relevant context (#17972) 2024-09-20 18:09:18 -04:00
slash_command_picker.rs assistant: Use a labeled button for the slash command menu (#19703) 2024-10-24 19:37:42 -03:00
slash_command_settings.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
streaming_diff.rs Improve streaming git diffs to be less jumpy during inline assistant generation (#15853) 2024-08-06 16:13:29 +03:00
terminal_inline_assistant.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
tools.rs context_servers: Support tools (#19548) 2024-10-28 10:37:58 -04:00