Marshall Bowers
1b614ef63b
Add an Assistant example that can interact with the filesystem ( #11027 )
...
This PR adds a new Assistant example that is able to interact with the
filesystem using a tool.
Release Notes:
- N/A
2024-04-25 22:21:18 -04:00
Marshall Bowers
f8beda0704
Rename chat_with_functions
to use snake_case ( #11020 )
...
This PR renames the `chat-with-functions.rs` example to use snake_case
for the filename, as is convention.
Release Notes:
- N/A
2024-04-25 21:43:02 -04:00
Kyle Kelley
cf2272a949
Always submit function definitions in Simple mode too ( #11016 )
...
Switches Assistant2 to always provide functions. It's up to the model to
choose to use them. At a later point, the `Submit::Codebase` should
change the `tool_choice` to `query_codebase` rather than `auto`. For
now, I think this will improve the experience for folks testing.
Release Notes:
- N/A
2024-04-25 16:34:07 -07:00
Kyle Kelley
f176e8f0e4
Accept View
s on LanguageModelTool
s ( #10956 )
...
Creates a `ToolView` trait to allow interactivity. This brings expanding
and collapsing to the excerpts from project index searches.
Release Notes:
- N/A
---------
Co-authored-by: Nathan <nathan@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2024-04-25 13:03:43 -07:00
Antonio Scandurra
530224527d
Allow pressing escape
to cancel the current assistant generation ( #10987 )
...
If the assistant has already emitted some text, we will leave the
assistant message but maintain the cursor on the previous user message,
so that the user can easily discard the message by submitting again.
If no output was emitted yet, we simply delete the empty assistant
message.
Release Notes:
- N/A
2024-04-25 15:12:58 +02:00
Antonio Scandurra
25e239d986
Fix autoscroll in the new assistant ( #10928 )
...
This removes the manual calls to `scroll_to_reveal_item` in the new
assistant, as they are superseded by the new autoscrolling behavior of
the `List` when the editor requests one.
Release Notes:
- N/A
2024-04-24 14:12:44 +02:00
Kyle Kelley
af5a9fabc6
Include root schema as parameters for tool calling ( #10914 )
...
Allows `LanguageModelTool`s to include nested structures, by exposing
the definitions section of their JSON Schema.
Release Notes:
- N/A
2024-04-23 20:49:29 -07:00
Kyle Kelley
68a1ad89bb
New revision of the Assistant Panel ( #10870 )
...
This is a crate only addition of a new version of the AssistantPanel.
We'll be putting this behind a feature flag while we iron out the new
experience.
Release Notes:
- N/A
---------
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Conrad Irwin <conrad@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
Co-authored-by: Nate Butler <nate@zed.dev>
Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Max <max@zed.dev>
2024-04-23 16:23:26 -07:00
Max Brunsfeld
ecbd115542
Remove 2 suffix for assistant, journal
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:14:01 -08:00
Max Brunsfeld
789ce8dd75
Remove 2 suffix for workspace
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:08:51 -08:00
Max Brunsfeld
492805af9c
Remove 2 suffix for multi_buffer, outline, copilot
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:01:58 -08:00
Max Brunsfeld
588976d27a
Remove 2 suffix for editor
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 10:58:57 -08:00
Max Brunsfeld
0ac8aae17b
Remove 2 suffix for language_tools, search, terminal_view, auto_update
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 10:52:40 -08:00
Piotr Osiewicz
406edd279a
Merge branch 'main' into refine-render-traits
2024-01-03 12:27:42 +01:00
Julia
14066c4f0e
Add icon_tooltip
for panel buttons rather than using persistent name
2024-01-02 17:56:19 -05:00
Nathan Sobo
1b5c8b2b4a
Return impl IntoElement from Render::render trait
2024-01-02 10:09:05 -07:00
Nathan Sobo
db1cf8f6e1
Rename build_view
to new_view
and build_model
to new_model
...
The word "new" is shorter and blends in with `new` constructors that are common
in Rust. Been meaning to do this for a while.
2024-01-01 17:42:01 -07:00
Nathan Sobo
51d1d92d66
Attempt to return impl Element from render. 3 errors.
2024-01-01 14:23:02 +01:00
Antonio Scandurra
3715ddfa74
Use Pixels
instead of f32
for panel size
2023-12-22 18:26:33 +01:00
Marshall Bowers
7a9c4057a7
Increase inline assistant editor's line height ( #3757 )
...
This PR increases the line height for the inline assistant editor.
This fixes an issue where descenders were being clipped.
Release Notes:
- N/A
2023-12-21 10:56:52 -05:00
Antonio Scandurra
01947ed730
Use existing AnyElement::draw
2023-12-21 15:32:05 +01:00
Antonio Scandurra
5e4557ed16
Fix warnings
2023-12-21 15:27:08 +01:00
Antonio Scandurra
e2a4474200
Allow scrolling saved conversations
2023-12-21 15:22:49 +01:00
Marshall Bowers
a9fe108dbb
Fix typo in "Quote Selection" tooltip ( #3721 )
...
This PR fixes a typo in the "Quote Selection" tooltip.
Release Notes:
- N/A
2023-12-19 16:21:58 -05:00
Nate Butler
5d95e13cc8
Update assistant editor
2023-12-19 12:04:01 -05:00
Nate Butler
d8eea949ef
Update assistant panel message header, model switcher
2023-12-19 11:58:20 -05:00
Nate Butler
30b01b9bc0
Update imports, tab height const
2023-12-19 11:03:08 -05:00
Nate Butler
286f654517
Update assistant header
2023-12-19 10:57:36 -05:00
Nate Butler
57efaa92cf
Style assistant header, update icons
2023-12-19 10:30:46 -05:00
Nate Butler
42a02e4fb6
Remove red border
2023-12-19 10:03:59 -05:00
Nate Butler
2c402f9b5d
Ensure conversation items fill the container
2023-12-19 10:03:26 -05:00
Nate Butler
49502af4d3
Update conversation item rendering
2023-12-19 09:56:29 -05:00
Conrad Irwin
4290c67b6a
Restore namespace parameter to actions!
...
This does not yet fix `derive(Action)`, but will conflict with a lot so
wanted to merge quickly.
2023-12-09 15:18:31 -07:00
Max Brunsfeld
6955579f19
Start work on chat panel and non-uniform list
...
Co-authored-by: Nathan <nathan@zed.dev>
2023-12-08 12:30:49 -08:00
Antonio Scandurra
edb2f60d9d
Use the correct icons in AssistantPanel header
2023-12-07 10:53:24 +01:00
Antonio Scandurra
02bd4fb1f1
Simplify focus management in AssistantPanel
2023-12-07 10:38:00 +01:00
Antonio Scandurra
e96197d63b
Ensure editor gets focused when selecting conversation
2023-12-07 10:27:25 +01:00
Marshall Bowers
fdd64832e7
Update inline assist styles
2023-12-06 13:52:38 -05:00
Antonio Scandurra
cc9eff89f5
Use a handler instead of an action for clicks
...
This prevents dispatching actions on buttons that were not the target of the click.
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 19:12:01 +01:00
Antonio Scandurra
e4884f1d76
Move assistant actions to the top of the crate
...
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 18:39:50 +01:00
Antonio Scandurra
80f315106d
Add key context to ConversationEditor
...
Co-Authored-By: Marshall <marshall@zed.dev>
2023-12-06 17:56:05 +01:00
Antonio Scandurra
a1c8f01ff3
WIP
2023-12-06 16:34:07 +01:00
Antonio Scandurra
1de02cf6e5
Start wiring up assistant2
2023-12-06 12:51:25 +01:00
Antonio Scandurra
b29cea287b
WIP
2023-12-06 12:12:28 +01:00
Antonio Scandurra
d86da04584
WIP
2023-12-05 19:27:15 +01:00
Antonio Scandurra
e534c5fdcd
WIP
2023-12-05 18:14:24 +01:00
Antonio Scandurra
ede86d9187
WIP
2023-12-05 16:49:36 +01:00