Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(config): add schema types for config validation

Steven Enamakel99bf2b260c99
diff --git a/crates/openhuman-core/src/config/schema/types.rs b/crates/openhuman-core/src/config/schema/types.rs
index 119292d68f..0e7a0762a6 100644
--- a/crates/openhuman-core/src/config/schema/types.rs
+++ b/crates/openhuman-core/src/config/schema/types.rs
@@ -4,6 +4,7 @@
//! Load/save and env overrides extend `Config` in `load/`.
mod config;
+mod config_clone;
mod defaults;
mod model_ids;
mod output_language;
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index 6b4ef6b4bc..aa68e842f0 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -50,7 +50,9 @@ pub struct CustomEmbeddingsConfig {
}
/// Top-level configuration (config.toml root).
-#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
+///
+/// `Clone` is implemented by hand in `config_clone.rs` so it is emitted once.
+#[derive(Debug, Serialize, Deserialize, JsonSchema)]
pub struct Config {
#[serde(skip)]
pub workspace_dir: PathBuf,