summaryrefslogtreecommitdiff
path: root/example.go
diff options
context:
space:
mode:
Diffstat (limited to 'example.go')
-rw-r--r--example.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/example.go b/example.go
index d22f39c..ff33b05 100644
--- a/example.go
+++ b/example.go
@@ -10,7 +10,12 @@ func ExampleChat() *Chats {
t := conversation.AddTable()
t.AddRow([]string{"apple", "pear"})
- conversation.AddGeminiComment("funny")
+ gchat := conversation.AddGeminiComment("funny")
+
+ snip := new(CodeSnippet)
+ snip.Filename = "log/snip1.txt"
+ gchat.Snippets = append(gchat.Snippets, snip)
+
conversation.AddUserComment("yes")
conversation.AddGeminiComment("I like astronomy")