Skip to content

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

test(agent): add session harness tests for part 04

Steven Enamakeldd89c408b0b3
diff --git a/src/openhuman/agent/harness/session/session_tests_part_04_tests.rs b/src/openhuman/agent/harness/session/session_tests_part_04_tests.rs
index 52ad14835f..a19048af11 100644
--- a/src/openhuman/agent/harness/session/session_tests_part_04_tests.rs
+++ b/src/openhuman/agent/harness/session/session_tests_part_04_tests.rs
@@ -98,12 +98,21 @@ fn an_unchanged_integration_set_leaves_the_tool_block_byte_stable() {
]
};
- // Exactly what a provider request carries: name and schema, in order.
- let wire_block = |agent: &Agent| -> Vec<(String, String)> {
+ // Exactly what a provider request carries: name, description and schema,
+ // in order. Description is part of the wire bytes too — a stale delegate
+ // description surviving a reconcile is the same class of bug as a stale
+ // schema and this fixture should catch either.
+ let wire_block = |agent: &Agent| -> Vec<(String, String, String)> {
agent
.tool_specs()
.iter()
- .map(|spec| (spec.name.clone(), spec.parameters.to_string()))
+ .map(|spec| {
+ (
+ spec.name.clone(),
+ spec.description.clone(),
+ spec.parameters.to_string(),
+ )
+ })
.collect()
};