Skip to content

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

test(prompts): add test module for agents_md layer loading

Steven Enamakeld5f9839d957b
diff --git a/crates/openhuman-core/src/agent/prompts/agents_md.rs b/crates/openhuman-core/src/agent/prompts/agents_md.rs
index 556162016b..8110ef9704 100644
--- a/crates/openhuman-core/src/agent/prompts/agents_md.rs
+++ b/crates/openhuman-core/src/agent/prompts/agents_md.rs
@@ -22,3 +22,7 @@ pub fn load_agents_md_layers(workspace_dir: &Path, action_dir: &Path) -> AgentsM
|path, root| crate::security::validate_path_within_root(path, root).is_ok(),
)
}
+
+#[cfg(test)]
+#[path = "agents_md_tests.rs"]
+mod tests;