Skip to content

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

fix(test): include dump in must-call assertion failure message

Steven Enamakel7222a175cd72
diff --git a/tests/agent_prompt_comprehension_e2e.rs b/tests/agent_prompt_comprehension_e2e.rs
index 2803a13eda..5e53945c35 100644
--- a/tests/agent_prompt_comprehension_e2e.rs
+++ b/tests/agent_prompt_comprehension_e2e.rs
@@ -783,7 +783,8 @@ async fn run_case_inner(case: Case) {
for tool in case.must_call {
assert!(
calls.iter().any(|c| c == tool),
- "[{agent}] must call `{tool}`; called {calls:?}"
+ "[{agent}] must call `{tool}`; called {calls:?}; requests: {}",
+ dump()
);
tool_result_text(&requests, tool)
.unwrap_or_else(|| panic!("[{agent}] no tool result for `{tool}`: {}", dump()));