Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App configType
Functions ¶
Types ¶
type Agent ¶ added in v0.26.1
type Agent struct {
// Agent token
Token string `json:"token" yaml:"token" mapstructure:"token"`
// Agent base URL
BaseUrl string `json:"base_url" yaml:"base_url" mapstructure:"base_url"`
// Agent model
Model string `json:"model" yaml:"model" mapstructure:"model"`
// Agent tool model
ToolModel string `json:"tool_model" yaml:"tool_model" mapstructure:"tool_model"`
// Agent language
Language string `json:"language" yaml:"language" mapstructure:"language"`
}
type Discord ¶
type Discord struct {
// Discord platform configuration
Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
// Discord app ID
AppID string `json:"app_id" yaml:"app_id" mapstructure:"app_id"`
// Discord public key
PublicKey string `json:"public_key" yaml:"public_key" mapstructure:"public_key"`
// Discord client ID
ClientID string `json:"client_id" yaml:"client_id" mapstructure:"client_id"`
// Discord client secret
ClientSecret string `json:"client_secret" yaml:"client_secret" mapstructure:"client_secret"`
// Discord bot token
BotToken string `json:"bot_token" yaml:"bot_token" mapstructure:"bot_token"`
}
type Engine ¶
type Engine struct {
// Engine type: docker
Type string `json:"type" yaml:"type" mapstructure:"type"`
// Resource limits
Limits struct {
// CPU limit
Cpus string `json:"cpus" yaml:"cpus" mapstructure:"cpus"`
// Memory limit
Memory string `json:"memory" yaml:"memory" mapstructure:"memory"`
} `json:"limits" yaml:"limits" mapstructure:"limits"`
Mounts struct {
// Bind mount
Bind struct {
// Allowed
Allowed bool `json:"allowed" yaml:"allowed" mapstructure:"allowed"`
} `json:"bind" yaml:"bind" mapstructure:"bind"`
} `json:"mounts" yaml:"mounts" mapstructure:"mounts"`
Docker struct {
// Docker config
Config string `json:"config" yaml:"config" mapstructure:"config"`
} `json:"docker" yaml:"docker" mapstructure:"docker"`
Shell struct {
// Command
CMD []string `json:"cmd" yaml:"cmd" mapstructure:"cmd"`
// User ID
UID string `json:"uid" yaml:"uid" mapstructure:"uid"`
// Group ID
GID string `json:"gid" yaml:"gid" mapstructure:"gid"`
} `json:"shell" yaml:"shell" mapstructure:"shell"`
Machine struct {
// Host
Host string `json:"host" yaml:"host" mapstructure:"host"`
// Port
Port int `json:"post" yaml:"port" mapstructure:"port"`
// Username
Username string `json:"username" yaml:"username" mapstructure:"username"`
// Password
Password string `json:"password" yaml:"password" mapstructure:"password"`
} `json:"machine" yaml:"machine" mapstructure:"machine"`
}
type Log ¶
type Log struct {
// Log level: debug, info, warn, error, fatal, panic
Level string `json:"level" yaml:"level" mapstructure:"level"`
}
type Metrics ¶ added in v0.18.1
type Metrics struct {
// Metrics endpoint
Endpoint string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
}
type Redis ¶
type Redis struct {
// Redis host
Host string `json:"host" yaml:"host" mapstructure:"host"`
// Redis port
Port int `json:"port" yaml:"port" mapstructure:"port"`
// Redis database
DB int `json:"db" yaml:"db" mapstructure:"db"`
// Redis password
Password string `json:"password" yaml:"pass" mapstructure:"password"`
}
type Search ¶ added in v0.18.1
type Search struct {
// Search endpoint
Endpoint string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
// Search master key
MasterKey string `json:"master_key" yaml:"master_key" mapstructure:"master_key"`
// Search data index
DataIndex string `json:"data_index" yaml:"data_index" mapstructure:"data_index"`
// Search URL base map
UrlBaseMap map[string]string `json:"url_base_map" yaml:"url_base_map" mapstructure:"url_base_map"`
}
type Slack ¶
type Slack struct {
// Slack platform configuration
Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
// Slack app ID
AppID string `json:"app_id" yaml:"app_id" mapstructure:"app_id"`
// Slack client ID
ClientID string `json:"client_id" yaml:"client_id" mapstructure:"client_id"`
// Slack client secret
ClientSecret string `json:"client_secret" yaml:"client_secret" mapstructure:"client_secret"`
// Slack signing secret
SigningSecret string `json:"signing_secret" yaml:"signing_secret" mapstructure:"signing_secret"`
// Slack verification token
VerificationToken string `json:"verification_token" yaml:"verification_token" mapstructure:"verification_token"`
// Slack app token
AppToken string `json:"app_token" yaml:"app_token" mapstructure:"app_token"`
// Slack bot token
BotToken string `json:"bot_token" yaml:"bot_token" mapstructure:"bot_token"`
}
type StoreType ¶
type StoreType struct {
// 16-byte key for XTEA. Used to initialize types.UidGenerator.
UidKey string `json:"uid_key" yaml:"uid_key" mapstructure:"uid_key"`
// Maximum number of results to return from adapter.
MaxResults int `json:"max_results" yaml:"max_results" mapstructure:"max_results"`
// DB adapter name to use. Should be one of those specified in `Adapters`.
UseAdapter string `json:"use_adapter" yaml:"use_adapter" mapstructure:"use_adapter"`
// Configurations for individual adapters.
Adapters map[string]interface{} `json:"adapters" yaml:"adapters" mapstructure:"adapters"`
}
type Tailchat ¶
type Tailchat struct {
// Tailchat platform configuration
Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
// Tailchat API URL
ApiURL string `json:"api_url" yaml:"api_url" mapstructure:"api_url"`
// Tailchat app ID
AppID string `json:"app_id" yaml:"app_id" mapstructure:"app_id"`
// Tailchat app secret
AppSecret string `json:"app_secret" yaml:"app_secret" mapstructure:"app_secret"`
}
Click to show internal directories.
Click to hide internal directories.