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): add debug output for own messages in e2e test

Steven Enamakel2ceaa1810b01
diff --git a/tests/agent_prompt_comprehension_e2e.rs b/tests/agent_prompt_comprehension_e2e.rs
index ba07faa9e3..46b46445c4 100644
--- a/tests/agent_prompt_comprehension_e2e.rs
+++ b/tests/agent_prompt_comprehension_e2e.rs
@@ -776,6 +776,7 @@ async fn run_case_inner(case: Case) {
}
}
+ for (i, r) in own.iter().enumerate() { eprintln!("DBG own[{i}] msgs={}", serde_json::to_string(r.pointer("/body/messages").unwrap_or(&Value::Null)).unwrap_or_default().chars().rev().take(1500).collect::<String>().chars().rev().collect::<String>()); }
let calls = called_tools(own.last().expect("non-empty"));
for tool in case.must_call {
assert!(