Skip to content

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

chore: reformat tool output middleware and focus tests

Steven Enamakel6cbaa154dfa9
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs
index 36c46f04c7..d2e9eb4942 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs
@@ -386,9 +386,9 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext> for Too
);
summarized_from_bytes = Some(bytes);
}
- let notice = compacted.notice.or_else(|| {
- unprepared.then(crate::inference::tokenjuice::summary_failed_notice)
- });
+ let notice = compacted
+ .notice
+ .or_else(|| unprepared.then(crate::inference::tokenjuice::summary_failed_notice));
if let Some(notice) = notice {
tracing::warn!(
tool = tool_name,
diff --git a/crates/openhuman-core/src/inference/tokenjuice/focus_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/focus_tests.rs
index de2c1b93b5..497a6ad9bd 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/focus_tests.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/focus_tests.rs
@@ -40,11 +40,14 @@ fn the_property_is_an_optional_string() {
#[test]
fn only_the_shared_property_counts_as_declaring_the_focus() {
- let declared = json!({ "properties": { "url": {}, "summary_focus": summary_focus_property() } });
+ let declared =
+ json!({ "properties": { "url": {}, "summary_focus": summary_focus_property() } });
assert!(declares_summary_focus(&declared));
let own_parameter = json!({ "properties": { "summary_focus": { "type": "integer" } } });
assert!(!declares_summary_focus(&own_parameter));
- assert!(!declares_summary_focus(&json!({ "properties": { "url": {} } })));
+ assert!(!declares_summary_focus(
+ &json!({ "properties": { "url": {} } })
+ ));
assert!(!declares_summary_focus(&json!({})));
}