summaryrefslogtreecommitdiff
path: root/convertToPB.go
diff options
context:
space:
mode:
Diffstat (limited to 'convertToPB.go')
-rw-r--r--convertToPB.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/convertToPB.go b/convertToPB.go
new file mode 100644
index 0000000..3f87e34
--- /dev/null
+++ b/convertToPB.go
@@ -0,0 +1,12 @@
+package main
+
+import (
+ "go.wit.com/lib/protobuf/chatpb"
+ "google.golang.org/genai"
+)
+
+func convertToPB(resp *genai.GenerateContentResponse) *chatpb.ChatEntry {
+ pb := new(chatpb.ChatEntry)
+ // TODO: add the code to convert the response to the protobuf
+ return pb
+}