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(isolation): improve message role extraction in tests
Steven Enamakela6e57a68cef0
diff --git a/crates/openhuman-embed/tests/isolation_subagents.rs b/crates/openhuman-embed/tests/isolation_subagents.rsindex 96709193e6..405e8bee2f 100644--- a/crates/openhuman-embed/tests/isolation_subagents.rs+++ b/crates/openhuman-embed/tests/isolation_subagents.rs@@ -251,7 +251,9 @@ fn host_only_and_disallowed_scopes_do_not_opt_into_declared_helpers() {body.get("messages").and_then(|messages| messages.as_array()).map(|messages| messages.iter().map(|message| (- message.get("role").and_then(serde_json::Value::as_str),+ message.get("role")+ .and_then(serde_json::Value::as_str)+ .map(str::to_owned),message.get("content").map_or(0, |content| content.to_string().len()),)).collect::<Vec<_>>()).unwrap_or_default()