JIMMYGGG commited on
Commit
192a010
·
verified ·
1 Parent(s): b7a31e3

Create message.proto

Browse files
Files changed (1) hide show
  1. src/message.proto +51 -0
src/message.proto ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ syntax = "proto3";
2
+
3
+ message ChatMessage {
4
+ message FileContent {
5
+ message Position {
6
+ int32 line = 1;
7
+ int32 column = 2;
8
+ }
9
+ message Range {
10
+ Position start = 1;
11
+ Position end = 2;
12
+ }
13
+
14
+ string filename = 1;
15
+ string content = 2;
16
+ Position position = 3;
17
+ string language = 5;
18
+ Range range = 6;
19
+ int32 length = 8;
20
+ int32 type = 9;
21
+ int32 error_code = 11;
22
+ }
23
+
24
+ message UserMessage {
25
+ string content = 1;
26
+ int32 role = 2;
27
+ string message_id = 13;
28
+ }
29
+
30
+ message Instructions {
31
+ string instruction = 1;
32
+ }
33
+
34
+ message Model {
35
+ string name = 1;
36
+ string empty = 4;
37
+ }
38
+
39
+ // repeated FileContent files = 1;
40
+ repeated UserMessage messages = 2;
41
+ Instructions instructions = 4;
42
+ string projectPath = 5;
43
+ Model model = 7;
44
+ string requestId = 9;
45
+ string summary = 11; // 或许是空的,描述会话做了什么事情,但是不是标题 或许可以当作额外的设定来用
46
+ string conversationId = 15; // 又来一个uuid
47
+ }
48
+
49
+ message ResMessage {
50
+ string msg = 1;
51
+ }