blob: 8c0ba380ba01c0a25dbbfce9bc537a0eb640d6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package chatpb
import (
"go.wit.com/log"
)
func ExampleChat() *Chats {
conversation := NewChats()
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")
dump := conversation.FormatTEXT()
log.Println(dump)
return conversation
}
|