diff options
| author | Jeff Carr <[email protected]> | 2025-08-21 16:01:05 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-21 16:01:05 -0500 |
| commit | 2d7b5fe532650562e83aa98b1e5f2c41149dadc6 (patch) | |
| tree | b4a70979352052bf2dc209e375c86e3354141cae /example.go | |
| parent | d7dec7865ad74d4ffe6f56aaf27906ea1a52171d (diff) | |
update with code snippet
Diffstat (limited to 'example.go')
| -rw-r--r-- | example.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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") |
