The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(recorded_tools): add assertion that rebuilt declaration matches recorded one
Steven Enamakel6664e79098a7
diff --git a/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs b/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rsindex bb38ca07d2..308d9e3ed0 100644--- a/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/recorded_tools_tests.rs@@ -82,6 +82,17 @@ fn a_rebuilt_declaration_is_byte_identical_to_the_recorded_one() {let recorded = vec![spec("GMAIL_SEND_EMAIL")];let first = rehydrate_integration_actions(&recorded, &[], &[], false);let second = rehydrate_integration_actions(&recorded, &[], &[], false);+ let mut rebuilt = first[0].spec();+ rebuilt+ .parameters+ .get_mut("properties")+ .and_then(serde_json::Value::as_object_mut)+ .expect("rebuilt properties")+ .remove("connection_id");+ assert_eq!(+ serde_json::to_string(&rebuilt).unwrap(),+ serde_json::to_string(&recorded[0]).unwrap()+ );assert_eq!(serde_json::to_string(&first[0].spec()).unwrap(),serde_json::to_string(&second[0].spec()).unwrap()