Skip to content

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

feat(config): add ConfigDocumentSnapshot type

Steven Enamakelcdee7e1254d3
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index 997c5c0c92..fed57f4500 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -8,6 +8,12 @@ use std::path::PathBuf;
use crate::config::schema::*;
+#[derive(Debug, Clone, Default, PartialEq, Eq)]
+pub(crate) struct ConfigDocumentSnapshot {
+ pub version: Option<tinystoragedrivers::Version>,
+ pub anchor: Option<super::load::source::ConfigSourceAnchor>,
+}
+
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonSchema)]
pub struct ModelRegistryEntry {
pub id: String,
@@ -57,7 +63,7 @@ pub struct Config {
/// Revision of the shared config document this snapshot was loaded from.
#[serde(skip)]
#[schemars(skip)]
- pub(crate) document_snapshot: std::sync::Mutex<super::config_snapshot::DocumentSnapshot>,
+ pub(crate) document_snapshot: std::sync::Mutex<ConfigDocumentSnapshot>,
#[serde(skip)]
#[schemars(skip)]
pub(crate) context_snapshot: Option<std::sync::Weak<std::sync::Mutex<Config>>>,