zed/crates/assistant2/src
Max Brunsfeld a64e20ed96
Centralize project context provided to the assistant (#11471)
This PR restructures the way that tools and attachments add information
about the current project to a conversation with the assistant. Rather
than each tool call or attachment generating a new tool or system
message containing information about the project, they can all
collectively mutate a new type called a `ProjectContext`, which stores
all of the project data that should be sent to the assistant. That data
is then formatted in a single place, and passed to the assistant in one
system message.

This prevents multiple tools/attachments from including redundant
context.

Release Notes:

- N/A

---------

Co-authored-by: Kyle <kylek@zed.dev>
2024-05-06 17:01:50 -07:00
..
attachments Centralize project context provided to the assistant (#11471) 2024-05-06 17:01:50 -07:00
tools Centralize project context provided to the assistant (#11471) 2024-05-06 17:01:50 -07:00
ui Centralize project context provided to the assistant (#11471) 2024-05-06 17:01:50 -07:00
assistant2.rs Centralize project context provided to the assistant (#11471) 2024-05-06 17:01:50 -07:00
assistant_settings.rs
attachments.rs Centralize project context provided to the assistant (#11471) 2024-05-06 17:01:50 -07:00
completion_provider.rs Allow codebase search to be turned on or off within the composer for assistant2 (#11315) 2024-05-02 13:26:46 -07:00
tools.rs
ui.rs Attachment store for assistant2 (#11327) 2024-05-03 14:48:00 -07:00