Skip to content

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

test(agent): cover task_key and image_paths in spawn schema

Steven Enamakelae5ab8dd84f4
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_async_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_async_tests.rs
index 0922b2a874..19e781f75c 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_async_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_async_tests.rs
@@ -22,9 +22,12 @@ fn parameters_schema_advertises_fire_and_forget_fields() {
.get("properties")
.and_then(|v| v.as_object())
.expect("properties");
- for key in ["context", "model", "task_title"] {
+ for key in ["context", "model", "task_title", "task_key", "image_paths"] {
assert!(props.contains_key(key), "missing {key}");
}
+ for retired in ["blocking", "dedicated_thread", "archetype"] {
+ assert!(!props.contains_key(retired), "legacy {retired} was advertised");
+ }
assert!(
!props.contains_key("toolkit"),
"the retired toolkit spawn argument must not be advertised"