Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
type History struct { CurrentID string `json:"currentId"` Messages map[string]Message `json:"messages"` }
note:run go generate if the filed changes
type Message ¶
type Message struct { ChildrenIds []string `json:"childrenIds,omitempty"` Content string `json:"content,omitempty"` Context string `json:"context,omitempty"` ID string `json:"id,omitempty"` ParentId string `json:"parentId,omitempty"` Role string `json:"role,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` Done bool `json:"done,omitempty"` Info interface{} `json:"info,omitempty"` }
Click to show internal directories.
Click to hide internal directories.