Skip to content

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

test(openhuman-embed): simplify runtime agent error handling

Steven Enamakel170b048b0f32
diff --git a/crates/openhuman-embed/tests/runtime_agents.rs b/crates/openhuman-embed/tests/runtime_agents.rs
index 004126592e..39d2509ba2 100644
--- a/crates/openhuman-embed/tests/runtime_agents.rs
+++ b/crates/openhuman-embed/tests/runtime_agents.rs
@@ -278,15 +278,12 @@ fn one_runtime_hosts_independently_configured_agents() {
)
.expect("budget agent instantiates");
- if let Err(error) = withholding_agent
+ withholding_agent
.turn("hide the configured tool")
.session("hidden-turn")
.send()
.await
- {
- eprintln!("hidden turn failed: {error:#}");
- panic!("hidden turn runs");
- }
+ .expect("hidden turn runs");
withholding_agent
.turn("restore the configured tool")
.session("visible-turn")
@@ -485,13 +482,7 @@ fn one_runtime_hosts_independently_configured_agents() {
);
// Managed inference authenticates with the runtime's API key.
- let g1 = match gamma.run("hello from gamma").await {
- Ok(outcome) => outcome,
- Err(error) => {
- eprintln!("gamma turn failed: {error:#}");
- panic!("gamma turn");
- }
- };
+ let g1 = gamma.run("hello from gamma").await.expect("gamma turn");
assert!(g1.reply.contains("managed-ok"), "{:?}", g1.reply);
let managed: Vec<_> = backend
.received_requests()
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 66698ac91f..510438d2c5 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 66698ac91fb67a03b1d2254306f9547c9e663243
+Subproject commit 510438d2c5e905c8ca3455da046b986678a97b0f