pub struct Config {
pub agents: AgentsConfig,
pub channels: ChannelsConfig,
pub providers: ProvidersConfig,
pub gateway: GatewayConfig,
pub tools: ToolsConfig,
pub delegation: DelegationConfig,
pub routing: RoutingConfig,
pub voice: VoiceConfig,
pub kernel: KernelConfig,
pub pipeline: PipelineConfig,
}Expand description
Root configuration for the clawft framework.
Mirrors the Python Config(BaseSettings) class.
Fields§
§agents: AgentsConfigAgent defaults and per-agent overrides.
channels: ChannelsConfigChat channel configurations (Telegram, Slack, Discord, etc.).
providers: ProvidersConfigLLM provider credentials and settings.
gateway: GatewayConfigGateway / HTTP server settings.
tools: ToolsConfigTool configurations (web search, exec, MCP servers).
delegation: DelegationConfigTask delegation routing configuration.
routing: RoutingConfigTiered routing and permission configuration.
voice: VoiceConfigVoice pipeline configuration (STT, TTS, VAD, wake word).
kernel: KernelConfigKernel subsystem configuration (WeftOS).
pipeline: PipelineConfigPipeline stage selection (scorer, learner backends).
Implementations§
Source§impl Config
impl Config
Sourcepub fn workspace_path(&self) -> PathBuf
pub fn workspace_path(&self) -> PathBuf
Get the expanded workspace path.
On native targets (with the native feature), this expands ~/ prefixes
using dirs::home_dir(). On WASM or when native is disabled, ~/
prefixes are left unexpanded.
Sourcepub fn workspace_path_with_home(&self, home: Option<&Path>) -> PathBuf
pub fn workspace_path_with_home(&self, home: Option<&Path>) -> PathBuf
Get the expanded workspace path with an explicit home directory.
This is the browser-friendly variant that does not depend on dirs.
Pass None for home to skip ~/ expansion.