make chat entries
This commit is contained in:
parent
4fd6fd81d3
commit
80090152a1
15
chat.proto
15
chat.proto
|
@ -34,7 +34,7 @@ message CodeSnippet { // `autogenpb:nomute
|
|||
string content = 2;
|
||||
}
|
||||
|
||||
message Chat { // `autogenpb:nomutex`
|
||||
message ChatEntry { // `autogenpb:nomutex`
|
||||
Who from = 1;
|
||||
google.protobuf.Timestamp ctime = 2;
|
||||
string content = 3;
|
||||
|
@ -45,6 +45,19 @@ message Chat { // `autogenpb:nomute
|
|||
repeated CodeSnippet Snippets = 8;
|
||||
}
|
||||
|
||||
message Chat { // `autogenpb:nomutex`
|
||||
Who from = 1;
|
||||
google.protobuf.Timestamp ctime = 2;
|
||||
string content = 3;
|
||||
Table table = 4;
|
||||
repeated ToolCall ToolCalls = 5;
|
||||
string ContentFile = 6; // `autogenpb:unique` `autogenpb:sort`
|
||||
string uuid = 7; // `autogenpb:unique` `autogenpb:sort`
|
||||
repeated CodeSnippet Snippets = 8;
|
||||
string ChatName = 9;
|
||||
repeated ChatEntry Entries = 10;
|
||||
}
|
||||
|
||||
message Chats { // `autogenpb:marshal` `autogenpb:mutex`
|
||||
string uuid = 1; // `autogenpb:uuid:9fd31f10-c25d-4d66-bc8d-5f6eb7c79057`
|
||||
string version = 2; // `autogenpb:version:v0.0.1`
|
||||
|
|
|
@ -56,7 +56,7 @@ func (all *Chats) ConfigSave() error {
|
|||
}
|
||||
return err
|
||||
}
|
||||
if err := configWrite("gemini.pb", data); err != nil {
|
||||
if err := configWrite("gemini.pb", data); err != nil {
|
||||
log.Infof("chatpb.ConfigSave() failed len(Chats)=%d bytes=%d", len(cleanChats.Chats), len(data))
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue