Introduce staff-only inline completion provider (#21739)
Release Notes: - N/A --------- Co-authored-by: Thorsten Ball <mrnugget@gmail.com> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Thorsten <thorsten@zed.dev>
This commit is contained in:
parent
39e8944dcc
commit
77b8296fbb
39 changed files with 2890 additions and 356 deletions
|
@ -93,6 +93,7 @@ impl Display for AssistantPhase {
|
|||
pub enum Event {
|
||||
Editor(EditorEvent),
|
||||
InlineCompletion(InlineCompletionEvent),
|
||||
InlineCompletionRating(InlineCompletionRatingEvent),
|
||||
Call(CallEvent),
|
||||
Assistant(AssistantEvent),
|
||||
Cpu(CpuEvent),
|
||||
|
@ -130,6 +131,21 @@ pub struct InlineCompletionEvent {
|
|||
pub file_extension: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub enum InlineCompletionRating {
|
||||
Positive,
|
||||
Negative,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct InlineCompletionRatingEvent {
|
||||
pub rating: InlineCompletionRating,
|
||||
pub input_events: Arc<str>,
|
||||
pub input_excerpt: Arc<str>,
|
||||
pub output_excerpt: Arc<str>,
|
||||
pub feedback: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CallEvent {
|
||||
/// Operation performed: invite/join call; begin/end screenshare; share/unshare project; etc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue