Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Completion ¶
type HiAscend ¶
type HiAscend HistoryItems
type HistoryChatItem ¶
type HistoryItem ¶
type HistoryItem struct {
Time int64 `json:"ts"`
UID string `json:"uid,omitempty"`
// chat
ChatItem *HistoryChatItem `json:"ci"`
}
func (*HistoryItem) MarshalBinary ¶
func (z *HistoryItem) MarshalBinary() (data []byte, err error)
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (*HistoryItem) UnmarshalBinary ¶
func (z *HistoryItem) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshal a binary representation of itself. for redis result.Scan
type HistoryItems ¶
type HistoryItems []HistoryItem
func (HistoryItems) MarshalBinary ¶
func (z HistoryItems) MarshalBinary() (data []byte, err error)
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (HistoryItems) RecentlyWithTokens ¶
func (z HistoryItems) RecentlyWithTokens(size int) (ohi HistoryItems)
func (*HistoryItems) UnmarshalBinary ¶
func (z *HistoryItems) UnmarshalBinary(data []byte) error
UnmarshalBinary unmarshal a binary representation of itself. for redis result.Scan
type MCPServer ¶
type MCPServer struct {
Code string `json:"code" yaml:"code"`
Name string `json:"name" yaml:"name"`
Type MCPType `json:"type" yaml:"type"`
URL string `json:"url" yaml:"url"`
}
MCPServer is a MCP server
type Preset ¶
type Preset struct {
Completion *Completion `json:"completion,omitempty" yaml:"completion,omitempty"`
Welcome *Message `json:"welcome,omitempty" yaml:"welcome,omitempty"`
MaxTokens int `json:"maxTokens,omitempty" yaml:"maxTokens,omitempty"`
Temperature float32 `json:"temperature,omitempty" yaml:"temperature,omitempty"`
Stop []string `json:"stop,omitempty" yaml:"stop,omitempty"`
SystemPrompt string `json:"systemPrompt,omitempty" yaml:"systemPrompt,omitempty"`
ToolsPrompt string `json:"toolsPrompt,omitempty" yaml:"toolsPrompt,omitempty"`
MCPServers []MCPServer `json:"mcps,omitempty" yaml:"mcps,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.