Documentation
¶
Index ¶
- func Load(path string) error
- type AgentConfig
- type BuiltinConfig
- type Config
- type DeepSeekConfig
- type EmailConfig
- type EmailToolConfig
- type HTTPConfig
- type LLMConfig
- type MCPConfig
- type MCPMetadata
- type MCPServerMetadata
- type MCPToolMetadata
- type MemoryConfig
- type MongoDBConfig
- type MySQLConfig
- type OpenAIConfig
- type RedisConfig
- type SQLiteConfig
- type SkillsConfig
- type ToolConfig
- type ToolsConfig
- type VolceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentConfig ¶
type AgentConfig struct {
MaxIterations int `yaml:"max_iterations"`
SystemMessage string `yaml:"system_message"`
Temperature float64 `yaml:"temperature"`
MaxTokens int `yaml:"max_tokens"`
TopP float64 `yaml:"top_p"`
FrequencyPenalty float64 `yaml:"frequency_penalty"`
PresencePenalty float64 `yaml:"presence_penalty"`
Timeout string `yaml:"timeout"`
RetryAttempts int `yaml:"retry_attempts"`
EnableToolRetry bool `yaml:"enable_tool_retry"`
MaxHistoryMessages int `yaml:"max_history_messages"`
EnableMemoryCompress bool `yaml:"enable_memory_compress"`
MemoryCompressThreshold int `yaml:"memory_compress_threshold"`
MemoryCompressRatio float64 `yaml:"memory_compress_ratio"`
LogSilent bool `yaml:"log_silent"`
LogFile string `yaml:"log_file"`
MCP MCPMetadata `yaml:"mcp"`
}
func (*AgentConfig) TimeoutDuration ¶
func (a *AgentConfig) TimeoutDuration() (time.Duration, error)
type BuiltinConfig ¶
type BuiltinConfig struct {
Enabled bool `yaml:"enabled"`
SSH ToolConfig `yaml:"ssh"`
File ToolConfig `yaml:"file"`
Email EmailToolConfig `yaml:"email"`
Command ToolConfig `yaml:"command"`
Math ToolConfig `yaml:"math"`
Ping ToolConfig `yaml:"ping"`
Time ToolConfig `yaml:"time"`
}
type Config ¶
type Config struct {
LLM LLMConfig `yaml:"llm"`
Tools ToolsConfig `yaml:"tools"`
Memory MemoryConfig `yaml:"memory"`
Skills SkillsConfig `yaml:"skills"`
Agent AgentConfig `yaml:"agent"`
}
type DeepSeekConfig ¶
type EmailConfig ¶
type EmailToolConfig ¶
type EmailToolConfig struct {
Enabled bool `yaml:"enabled"`
Config EmailConfig `yaml:"config"`
}
type HTTPConfig ¶
type HTTPConfig struct {
Enabled bool `yaml:"enabled"`
}
type LLMConfig ¶
type LLMConfig struct {
Provider string `yaml:"provider"`
OpenAI OpenAIConfig `yaml:"openai"`
DeepSeek DeepSeekConfig `yaml:"deepseek"`
Volce VolceConfig `yaml:"volce"`
}
type MCPMetadata ¶
type MCPMetadata struct {
Server MCPServerMetadata `yaml:"server"`
Tool MCPToolMetadata `yaml:"tool"`
}
type MCPServerMetadata ¶
type MCPToolMetadata ¶
type MemoryConfig ¶
type MemoryConfig struct {
Provider string `yaml:"provider"`
SessionID string `yaml:"session_id"`
MaxHistoryMessages int `yaml:"max_history_messages"`
Redis RedisConfig `yaml:"redis"`
MongoDB MongoDBConfig `yaml:"mongodb"`
MySQL MySQLConfig `yaml:"mysql"`
SQLite SQLiteConfig `yaml:"sqlite"`
}
type MongoDBConfig ¶
type MySQLConfig ¶ added in v1.5.0
type MySQLConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
Table string `yaml:"table"`
MaxOpenConn int `yaml:"max_open_conn,omitempty"`
MaxIdleConn int `yaml:"max_idle_conn,omitempty"`
MaxIdleTimeSec int `yaml:"max_idle_time_sec,omitempty"`
DisableErrorHook bool `yaml:"disable_error_hook,omitempty"`
}
type OpenAIConfig ¶
type RedisConfig ¶
type SQLiteConfig ¶ added in v1.5.0
type SkillsConfig ¶ added in v1.6.0
type SkillsConfig struct {
Paths []string `yaml:"paths"`
}
type ToolConfig ¶
type ToolConfig struct {
Enabled bool `yaml:"enabled"`
}
type ToolsConfig ¶
type ToolsConfig struct {
MCP []MCPConfig `yaml:"mcp"`
HTTP HTTPConfig `yaml:"http"`
Builtin BuiltinConfig `yaml:"builtin"`
}
type VolceConfig ¶
Click to show internal directories.
Click to hide internal directories.