Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Meta EntryMeta `json:"m"`
Content EntryContent `json:"c"`
}
func NewEntry ¶
func NewEntry(content EntryContent) Entry
type EntryContent ¶
type EntryContent struct {
Messages []Message `json:"m"`
}
type Message ¶
type Message struct {
Id string `json:"i,omitempty"`
Role string `json:"r,omitempty"`
ContentParts []MessageContentPart `json:"p,omitempty"`
CreatedAt int64 `json:"t,omitempty"`
}
type MessageCall ¶
type MessageCall struct {
Id string `json:"i,omitempty"`
Function string `json:"f,omitempty"`
Arguments string `json:"a,omitempty"`
Result *MessageCallResult `json:"r,omitempty"`
}
type MessageCallResult ¶
type MessageContentPart ¶
type MessageContentPart struct {
Type string `json:"t,omitempty"`
Content string `json:"c,omitempty"`
Call *MessageCall `json:"ca,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.