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(host_runtime): tighten complete_once error assertions
Steven Enamakel5429c9759752
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rsindex 054633c972..1551c006a7 100644--- a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs+++ b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs@@ -131,7 +131,10 @@ async fn refuses_tool_declarations() {let err = complete_once(&unreachable_endpoint(), request, None).await.unwrap_err();- assert!(err.contains("tools are not supported"), "{err}");+ assert_eq!(+ err,+ "complete_once: tools are not supported on a stateless completion; use an agent turn"+ );}#[tokio::test]@@ -140,7 +143,7 @@ async fn requires_a_model() {let err = complete_once(&unreachable_endpoint(), request, None).await.unwrap_err();- assert!(err.contains("request.model is required"), "{err}");+ assert_eq!(err, "complete_once: request.model is required");}#[tokio::test]@@ -150,9 +153,9 @@ async fn refuses_tools_smuggled_through_provider_options() {let err = complete_once(&unreachable_endpoint(), request, None).await.expect_err("tools must not reach the provider via provider_options");- assert!(- err.contains("provider_options may not set `tools`"),- "{err}"+ assert_eq!(+ err,+ "complete_once: provider_options may not set `tools`; use the typed request fields");}