use std::path::Path; use serde::{Deserialize, Serialize}; pub mod mcp; #[derive(Debug, Deserialize, Serialize)] pub struct Config { pub mcp: mcp::McpConfig, pub deepseek_key: Option, pub cohere_key: Option, } impl Config { pub async fn retrive(path: impl AsRef) -> anyhow::Result { let content = tokio::fs::read_to_string(path).await?; let config: Self = toml::from_str(&content)?; Ok(config) } }