summaryrefslogtreecommitdiff
path: root/example.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-21 16:01:05 -0500
committerJeff Carr <[email protected]>2025-08-21 16:01:05 -0500
commit2d7b5fe532650562e83aa98b1e5f2c41149dadc6 (patch)
treeb4a70979352052bf2dc209e375c86e3354141cae /example.go
parentd7dec7865ad74d4ffe6f56aaf27906ea1a52171d (diff)
update with code snippet
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")