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>
This commit is contained in:
parent
e0c83a1d32
commit
68a1ad89bb
55 changed files with 2989 additions and 262 deletions
|
@ -1880,22 +1880,70 @@ message CompleteWithLanguageModel {
|
|||
repeated LanguageModelRequestMessage messages = 2;
|
||||
repeated string stop = 3;
|
||||
float temperature = 4;
|
||||
repeated ChatCompletionTool tools = 5;
|
||||
optional string tool_choice = 6;
|
||||
}
|
||||
|
||||
// A tool presented to the language model for its use
|
||||
message ChatCompletionTool {
|
||||
oneof variant {
|
||||
FunctionObject function = 1;
|
||||
}
|
||||
|
||||
message FunctionObject {
|
||||
string name = 1;
|
||||
optional string description = 2;
|
||||
optional string parameters = 3;
|
||||
}
|
||||
}
|
||||
|
||||
// A message to the language model
|
||||
message LanguageModelRequestMessage {
|
||||
LanguageModelRole role = 1;
|
||||
string content = 2;
|
||||
optional string tool_call_id = 3;
|
||||
repeated ToolCall tool_calls = 4;
|
||||
}
|
||||
|
||||
enum LanguageModelRole {
|
||||
LanguageModelUser = 0;
|
||||
LanguageModelAssistant = 1;
|
||||
LanguageModelSystem = 2;
|
||||
LanguageModelTool = 3;
|
||||
}
|
||||
|
||||
message LanguageModelResponseMessage {
|
||||
optional LanguageModelRole role = 1;
|
||||
optional string content = 2;
|
||||
repeated ToolCallDelta tool_calls = 3;
|
||||
}
|
||||
|
||||
// A request to call a tool, by the language model
|
||||
message ToolCall {
|
||||
string id = 1;
|
||||
|
||||
oneof variant {
|
||||
FunctionCall function = 2;
|
||||
}
|
||||
|
||||
message FunctionCall {
|
||||
string name = 1;
|
||||
string arguments = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message ToolCallDelta {
|
||||
uint32 index = 1;
|
||||
optional string id = 2;
|
||||
|
||||
oneof variant {
|
||||
FunctionCallDelta function = 3;
|
||||
}
|
||||
|
||||
message FunctionCallDelta {
|
||||
optional string name = 1;
|
||||
optional string arguments = 2;
|
||||
}
|
||||
}
|
||||
|
||||
message LanguageModelResponse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue