Skip to content

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

test(agent-prompt-comprehension): include prompt text in assertion failure message

Steven Enamakel1d96d0eea9f4
diff --git a/tests/agent_prompt_comprehension_e2e.rs b/tests/agent_prompt_comprehension_e2e.rs
index 283456cc99..390367f51f 100644
--- a/tests/agent_prompt_comprehension_e2e.rs
+++ b/tests/agent_prompt_comprehension_e2e.rs
@@ -732,7 +732,8 @@ async fn run_case_inner(case: Case) {
for tool in case.must_advertise {
assert!(
first_belt.iter().any(|b| b == tool),
- "[{agent}] must advertise `{tool}`; advertised {first_belt:?}"
+ "[{agent}] must advertise `{tool}`; advertised {first_belt:?}; prompt={:?}",
+ system_text(own[0])
);
}
for request in &own {