Skip to content

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

test(schemas): add assertion for context node optional inputs

Steven Enamakel7116a49cac25
diff --git a/crates/openhuman-core/src/memory/schemas_tests.rs b/crates/openhuman-core/src/memory/schemas_tests.rs
index c3020fc205..6cdb92007b 100644
--- a/crates/openhuman-core/src/memory/schemas_tests.rs
+++ b/crates/openhuman-core/src/memory/schemas_tests.rs
@@ -101,6 +101,9 @@ fn required_inputs_match_the_spec() {
optional("context_set"),
["enabled", "interval_mins", "budget_tokens"]
);
+ for node in ["context_get", "context_refresh"] {
+ assert_eq!(optional(node), ["namespace"], "{node}");
+ }
assert_eq!(
optional("conversations_set"),
["enabled", "batch_turns", "idle_secs"]
@@ -110,8 +113,6 @@ fn required_inputs_match_the_spec() {
"engine_get",
"conversations_get",
"sources_list",
- "context_get",
- "context_refresh",
"import_scan",
"import_status",
] {