Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrResourceNotFound = errors.New("resource not found") ErrInvalidResourceSyntax = errors.New("resource syntax invalid") )
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { gorm.Model Name string `json:"name"` Description string `json:"description"` SendName bool `json:"send_name"` AiApiPluginName string `json:"ai_api_plugin_name"` AiModel string `json:"model"` Personality string `json:"personality"` CorrectionPrompt string `json:"correction_prompt"` UserHistory string `json:"user_history"` Randomness float64 `json:"randomness"` LastMessageAt *time.Time `json:"last_message_at"` }
type EventType ¶
type EventType string
const (
EVENT_TYPE_MESSAGE_CREATED EventType = "message_created"
)
type GetMessagesOptions ¶
type MessageCreated ¶
type MessageCreated struct {
Message *Message
}
type MessageRole ¶
type MessageRole string
const ( MESSAGE_ROLE_USER MessageRole = "USER" MESSAGE_ROLE_BOT MessageRole = "BOT" MESSAGE_ROLE_SYSTEM MessageRole = "SYSTEM" )
Click to show internal directories.
Click to hide internal directories.