summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doPlayback.go1
-rw-r--r--dumpchat.go12
2 files changed, 13 insertions, 0 deletions
diff --git a/doPlayback.go b/doPlayback.go
index d6ce604..2db75ae 100644
--- a/doPlayback.go
+++ b/doPlayback.go
@@ -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)
}
}
diff --git a/dumpchat.go b/dumpchat.go
new file mode 100644
index 0000000..e40a6f7
--- /dev/null
+++ b/dumpchat.go
@@ -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())
+ }
+}