Documentation
¶
Index ¶
- func GetChannelAllowFrom(ch any) []string
- func GetProviderConfig(models *OpenClawModels) map[string]OpenClawProviderConfig
- func GetProviderConfigFromDir(dir string) map[string]ProviderConfig
- type Action
- type AgentBinding
- type AgentConfig
- type AgentDefaults
- type AgentModelConfig
- type AgentsConfig
- type BindingMatch
- type BraveConfig
- type ChannelsConfig
- type Cost
- type CronConfig
- type DingTalkConfig
- type DiscordConfig
- type DuckDuckGoConfig
- type ExecConfig
- type FeishuConfig
- type GatewayConfig
- type LINEConfig
- type MaixCamConfig
- type MatrixConfig
- type ModelConfig
- type OpenClawAgentDefaults
- type OpenClawAgentEntry
- type OpenClawAgentModel
- type OpenClawAgentTools
- type OpenClawAgents
- type OpenClawAuth
- type OpenClawBlueBubblesConfig
- type OpenClawChannels
- type OpenClawConfig
- func (c *OpenClawConfig) ConvertToPicoClaw(sourceHome string) (*PicoClawConfig, []string, error)
- func (c *OpenClawConfig) GetAgents() []OpenClawAgentEntry
- func (c *OpenClawConfig) GetDefaultModel() (provider, model string)
- func (c *OpenClawConfig) GetDefaultWorkspace() string
- func (c *OpenClawConfig) GetEnabled() bool
- func (c *OpenClawConfig) HasAuthProfiles() bool
- func (c *OpenClawConfig) HasCron() bool
- func (c *OpenClawConfig) HasHooks() bool
- func (c *OpenClawConfig) HasMemory() bool
- func (c *OpenClawConfig) HasSession() bool
- func (c *OpenClawConfig) HasSkills() bool
- func (c *OpenClawConfig) IsChannelEnabled(name string) bool
- type OpenClawDingTalkConfig
- type OpenClawDiscordConfig
- type OpenClawFeishuConfig
- type OpenClawGoogleChatConfig
- type OpenClawIMessageConfig
- type OpenClawIrcConfig
- type OpenClawMaixCamConfig
- type OpenClawMatrixConfig
- type OpenClawMattermostConfig
- type OpenClawModelConfig
- type OpenClawModels
- type OpenClawProviderConfig
- type OpenClawQQConfig
- type OpenClawSignalConfig
- type OpenClawSkills
- type OpenClawSlackConfig
- type OpenClawTeamsConfig
- type OpenClawTelegramConfig
- type OpenClawTools
- type OpenClawWhatsAppConfig
- type OpenclawHandler
- func (o *OpenclawHandler) ExecuteConfigMigration(srcConfigPath, dstConfigPath string) error
- func (o *OpenclawHandler) GetMigrateableDirs() []string
- func (o *OpenclawHandler) GetMigrateableFiles() []string
- func (o *OpenclawHandler) GetSourceConfigFile() (string, error)
- func (o *OpenclawHandler) GetSourceHome() (string, error)
- func (o *OpenclawHandler) GetSourceName() string
- func (o *OpenclawHandler) GetSourceWorkspace() (string, error)
- type Operation
- type Options
- type PeerMatch
- type PerplexityConfig
- type PicoClawConfig
- type ProviderConfig
- type QQConfig
- type Result
- type SlackConfig
- type TavilyConfig
- type TelegramConfig
- type ToolsConfig
- type WebToolsConfig
- type WhatsAppConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChannelAllowFrom ¶
func GetProviderConfig ¶
func GetProviderConfig(models *OpenClawModels) map[string]OpenClawProviderConfig
func GetProviderConfigFromDir ¶
func GetProviderConfigFromDir(dir string) map[string]ProviderConfig
Types ¶
type AgentBinding ¶
type AgentBinding struct {
AgentID string `json:"agent_id"`
Match BindingMatch `json:"match"`
}
type AgentConfig ¶
type AgentDefaults ¶
type AgentDefaults struct {
Workspace string `json:"workspace"`
RestrictToWorkspace bool `json:"restrict_to_workspace"`
Provider string `json:"provider"`
ModelName string `json:"model_name"`
Model string `json:"model,omitempty"`
ModelFallbacks []string `json:"model_fallbacks,omitempty"`
ImageModel string `json:"image_model,omitempty"`
ImageModelFallbacks []string `json:"image_model_fallbacks,omitempty"`
MaxTokens int `json:"max_tokens"`
Temperature *float64 `json:"temperature,omitempty"`
MaxToolIterations int `json:"max_tool_iterations"`
}
type AgentModelConfig ¶
type AgentsConfig ¶
type AgentsConfig struct {
Defaults AgentDefaults `json:"defaults"`
List []AgentConfig `json:"list,omitempty"`
}
type BindingMatch ¶
type BraveConfig ¶
type ChannelsConfig ¶
type ChannelsConfig struct {
WhatsApp WhatsAppConfig `json:"whatsapp"`
Telegram TelegramConfig `json:"telegram"`
Feishu FeishuConfig `json:"feishu"`
Discord DiscordConfig `json:"discord"`
MaixCam MaixCamConfig `json:"maixcam"`
QQ QQConfig `json:"qq"`
DingTalk DingTalkConfig `json:"dingtalk"`
Slack SlackConfig `json:"slack"`
Matrix MatrixConfig `json:"matrix"`
LINE LINEConfig `json:"line"`
}
func (ChannelsConfig) ToStandardChannels ¶
func (c ChannelsConfig) ToStandardChannels() config.ChannelsConfig
type CronConfig ¶
type CronConfig struct {
ExecTimeoutMinutes int `json:"exec_timeout_minutes"`
}
type DingTalkConfig ¶
type DiscordConfig ¶
type DuckDuckGoConfig ¶
type ExecConfig ¶
type FeishuConfig ¶
type GatewayConfig ¶
func (GatewayConfig) ToStandardGateway ¶
func (c GatewayConfig) ToStandardGateway() config.GatewayConfig
type LINEConfig ¶
type LINEConfig struct {
Enabled bool `json:"enabled"`
ChannelSecret string `json:"channel_secret"`
ChannelAccessToken string `json:"channel_access_token"`
WebhookHost string `json:"webhook_host"`
WebhookPort int `json:"webhook_port"`
WebhookPath string `json:"webhook_path"`
AllowFrom []string `json:"allow_from"`
}
type MaixCamConfig ¶
type MatrixConfig ¶ added in v0.2.1
type ModelConfig ¶
type OpenClawAgentDefaults ¶
type OpenClawAgentDefaults struct {
Model *OpenClawAgentModel `json:"model"`
Workspace *string `json:"workspace"`
Tools *OpenClawAgentTools `json:"tools"`
Identity *string `json:"identity"`
}
type OpenClawAgentEntry ¶
type OpenClawAgentEntry struct {
ID string `json:"id"`
Name *string `json:"name"`
Model *OpenClawAgentModel `json:"model"`
Tools *OpenClawAgentTools `json:"tools"`
Workspace *string `json:"workspace"`
Skills []string `json:"skills"`
Identity *string `json:"identity"`
}
type OpenClawAgentModel ¶
type OpenClawAgentModel struct {
Simple string `json:"-"`
Primary *string `json:"primary"`
Fallbacks []string `json:"fallbacks"`
}
func (*OpenClawAgentModel) GetFallbacks ¶
func (m *OpenClawAgentModel) GetFallbacks() []string
func (*OpenClawAgentModel) GetPrimary ¶
func (m *OpenClawAgentModel) GetPrimary() string
type OpenClawAgentTools ¶
type OpenClawAgents ¶
type OpenClawAgents struct {
Defaults *OpenClawAgentDefaults `json:"defaults"`
List []OpenClawAgentEntry `json:"list"`
}
type OpenClawAuth ¶
type OpenClawAuth struct {
Profiles json.RawMessage `json:"profiles"`
Order json.RawMessage `json:"order"`
}
type OpenClawChannels ¶
type OpenClawChannels struct {
Telegram *OpenClawTelegramConfig `json:"telegram"`
Discord *OpenClawDiscordConfig `json:"discord"`
Slack *OpenClawSlackConfig `json:"slack"`
WhatsApp *OpenClawWhatsAppConfig `json:"whatsapp"`
Signal *OpenClawSignalConfig `json:"signal"`
Matrix *OpenClawMatrixConfig `json:"matrix"`
GoogleChat *OpenClawGoogleChatConfig `json:"googlechat"`
Teams *OpenClawTeamsConfig `json:"msteams"`
IRC *OpenClawIrcConfig `json:"irc"`
Mattermost *OpenClawMattermostConfig `json:"mattermost"`
Feishu *OpenClawFeishuConfig `json:"feishu"`
IMessage *OpenClawIMessageConfig `json:"imessage"`
BlueBubbles *OpenClawBlueBubblesConfig `json:"bluebubbles"`
QQ *OpenClawQQConfig `json:"qq"`
DingTalk *OpenClawDingTalkConfig `json:"dingtalk"`
MaixCam *OpenClawMaixCamConfig `json:"maixcam"`
}
type OpenClawConfig ¶
type OpenClawConfig struct {
Auth *OpenClawAuth `json:"auth"`
Models *OpenClawModels `json:"models"`
Agents *OpenClawAgents `json:"agents"`
Tools *OpenClawTools `json:"tools"`
Channels *OpenClawChannels `json:"channels"`
Cron json.RawMessage `json:"cron"`
Hooks json.RawMessage `json:"hooks"`
Skills *OpenClawSkills `json:"skills"`
Memory json.RawMessage `json:"memory"`
Session json.RawMessage `json:"session"`
}
func LoadOpenClawConfig ¶
func LoadOpenClawConfig(path string) (*OpenClawConfig, error)
func LoadOpenClawConfigFromDir ¶
func LoadOpenClawConfigFromDir(dir string) (*OpenClawConfig, error)
func (*OpenClawConfig) ConvertToPicoClaw ¶
func (c *OpenClawConfig) ConvertToPicoClaw(sourceHome string) (*PicoClawConfig, []string, error)
func (*OpenClawConfig) GetAgents ¶
func (c *OpenClawConfig) GetAgents() []OpenClawAgentEntry
func (*OpenClawConfig) GetDefaultModel ¶
func (c *OpenClawConfig) GetDefaultModel() (provider, model string)
func (*OpenClawConfig) GetDefaultWorkspace ¶
func (c *OpenClawConfig) GetDefaultWorkspace() string
func (*OpenClawConfig) GetEnabled ¶
func (c *OpenClawConfig) GetEnabled() bool
func (*OpenClawConfig) HasAuthProfiles ¶
func (c *OpenClawConfig) HasAuthProfiles() bool
func (*OpenClawConfig) HasCron ¶
func (c *OpenClawConfig) HasCron() bool
func (*OpenClawConfig) HasHooks ¶
func (c *OpenClawConfig) HasHooks() bool
func (*OpenClawConfig) HasMemory ¶
func (c *OpenClawConfig) HasMemory() bool
func (*OpenClawConfig) HasSession ¶
func (c *OpenClawConfig) HasSession() bool
func (*OpenClawConfig) HasSkills ¶
func (c *OpenClawConfig) HasSkills() bool
func (*OpenClawConfig) IsChannelEnabled ¶
func (c *OpenClawConfig) IsChannelEnabled(name string) bool
type OpenClawDingTalkConfig ¶
type OpenClawDiscordConfig ¶
type OpenClawFeishuConfig ¶
type OpenClawFeishuConfig struct {
AppID *string `json:"appId"`
AppSecret *string `json:"appSecret"`
Domain *string `json:"domain"`
DmPolicy *string `json:"dmPolicy"`
Enabled *bool `json:"enabled"`
VerificationToken *string `json:"verificationToken"`
EncryptKey *string `json:"encryptKey"`
AllowFrom []string `json:"allowFrom"`
}
type OpenClawIMessageConfig ¶
type OpenClawIrcConfig ¶
type OpenClawIrcConfig struct {
Host *string `json:"host"`
Port *int `json:"port"`
TLS *bool `json:"tls"`
Nick *string `json:"nick"`
Password *string `json:"password"`
Channels []string `json:"channels"`
DmPolicy *string `json:"dmPolicy"`
AllowFrom []string `json:"allowFrom"`
Enabled *bool `json:"enabled"`
}
type OpenClawMaixCamConfig ¶
type OpenClawMatrixConfig ¶
type OpenClawModelConfig ¶
type OpenClawModels ¶
type OpenClawModels struct {
Providers map[string]json.RawMessage `json:"providers"`
}
type OpenClawProviderConfig ¶
type OpenClawQQConfig ¶
type OpenClawSignalConfig ¶
type OpenClawSkills ¶
type OpenClawSkills struct {
Entries map[string]json.RawMessage `json:"entries"`
Load json.RawMessage `json:"load"`
}
type OpenClawSlackConfig ¶
type OpenClawTeamsConfig ¶
type OpenClawTelegramConfig ¶
type OpenClawTools ¶
type OpenClawWhatsAppConfig ¶
type OpenclawHandler ¶
type OpenclawHandler struct {
// contains filtered or unexported fields
}
func (*OpenclawHandler) ExecuteConfigMigration ¶
func (o *OpenclawHandler) ExecuteConfigMigration(srcConfigPath, dstConfigPath string) error
func (*OpenclawHandler) GetMigrateableDirs ¶
func (o *OpenclawHandler) GetMigrateableDirs() []string
func (*OpenclawHandler) GetMigrateableFiles ¶
func (o *OpenclawHandler) GetMigrateableFiles() []string
func (*OpenclawHandler) GetSourceConfigFile ¶
func (o *OpenclawHandler) GetSourceConfigFile() (string, error)
func (*OpenclawHandler) GetSourceHome ¶
func (o *OpenclawHandler) GetSourceHome() (string, error)
func (*OpenclawHandler) GetSourceName ¶
func (o *OpenclawHandler) GetSourceName() string
func (*OpenclawHandler) GetSourceWorkspace ¶
func (o *OpenclawHandler) GetSourceWorkspace() (string, error)
type Operation ¶
func NewOpenclawHandler ¶
type PerplexityConfig ¶
type PicoClawConfig ¶
type PicoClawConfig struct {
Agents AgentsConfig `json:"agents"`
Bindings []AgentBinding `json:"bindings,omitempty"`
Channels ChannelsConfig `json:"channels"`
ModelList []ModelConfig `json:"model_list"`
Gateway GatewayConfig `json:"gateway"`
Tools ToolsConfig `json:"tools"`
}
func (*PicoClawConfig) ToStandardConfig ¶
func (c *PicoClawConfig) ToStandardConfig() *config.Config
type ProviderConfig ¶
type ProviderConfig struct {
BaseUrl string `json:"baseUrl"`
Api string `json:"api"`
Models []ModelConfig `json:"models"`
ApiKey string `json:"apiKey"`
}
type SlackConfig ¶
type TavilyConfig ¶
type TelegramConfig ¶
type ToolsConfig ¶
type ToolsConfig struct {
Web WebToolsConfig `json:"web"`
Cron CronConfig `json:"cron"`
Exec ExecConfig `json:"exec"`
}
func (ToolsConfig) ToStandardTools ¶
func (c ToolsConfig) ToStandardTools() config.ToolsConfig
type WebToolsConfig ¶
type WebToolsConfig struct {
Brave BraveConfig `json:"brave"`
Tavily TavilyConfig `json:"tavily"`
DuckDuckGo DuckDuckGoConfig `json:"duckduckgo"`
Perplexity PerplexityConfig `json:"perplexity"`
Proxy string `json:"proxy,omitempty"`
}
type WhatsAppConfig ¶
Click to show internal directories.
Click to hide internal directories.