feat: add dumpchat function

This commit is contained in:
Castor Regex 2025-08-31 22:31:11 -05:00 committed by Jeff Carr
parent 8c8fccc650
commit 710693b18a
2 changed files with 13 additions and 0 deletions

View File

@ -79,6 +79,7 @@ func listChats(chats *chatpb.Chats) {
if numChats > 0 {
lastChat := chats.GetChats()[numChats-1]
log.Printf("The current Gemini API session is UUID: %s\n", lastChat.GetUuid())
dumpchat(lastChat)
}
}

12
dumpchat.go Normal file
View File

@ -0,0 +1,12 @@
package main
import (
"go.wit.com/lib/protobuf/chatpb"
"go.wit.com/log"
)
func dumpchat(chat *chatpb.Chat) {
for _, entry := range chat.GetEntries() {
log.Printf("Entry: %s\n", entry.GetUuid())
}
}