Skip to content

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

style(tests): reformat long expressions to satisfy line width

Steven Enamakel3a1f39a4abd1
diff --git a/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs b/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs
index 569e362f15..b5b73a65a2 100644
--- a/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs
@@ -222,8 +222,14 @@ async fn a_markers_compaction_sends_no_tool_output_and_caps_the_summary() {
fn idle_history() -> Vec<Message> {
let mut history = vec![Message::system("system prompt")];
for round in 0..8 {
- history.push(Message::user(format!("ask {round}: {}", "detail ".repeat(60))));
- history.push(Message::assistant(format!("answer {round}: {}", "result ".repeat(60))));
+ history.push(Message::user(format!(
+ "ask {round}: {}",
+ "detail ".repeat(60)
+ )));
+ history.push(Message::assistant(format!(
+ "answer {round}: {}",
+ "result ".repeat(60)
+ )));
}
history
}
@@ -258,7 +264,11 @@ async fn an_idle_fold_puts_the_summary_after_the_system_prompt() {
assert_eq!(compacted[0], history[0], "the system prompt is kept as is");
assert!(matches!(compacted[1], Message::User(_)));
assert!(compacted[1].text().contains("IDLE-SUMMARY"));
- assert_eq!(compacted.last(), history.last(), "the tail is kept verbatim");
+ assert_eq!(
+ compacted.last(),
+ history.last(),
+ "the tail is kept verbatim"
+ );
assert!(compacted.len() < history.len());
assert_eq!(summarizer_model.requests().len(), 1);
}
diff --git a/crates/openhuman-embed/src/agent/definition_tests.rs b/crates/openhuman-embed/src/agent/definition_tests.rs
index 479bc6c4f9..66c7b8b05c 100644
--- a/crates/openhuman-embed/src/agent/definition_tests.rs
+++ b/crates/openhuman-embed/src/agent/definition_tests.rs
@@ -79,7 +79,10 @@ fn memory_block_reaches_the_core_definition_and_comes_from_a_template() {
.into_core("inherits")
.unwrap();
assert_eq!(
- inherited.extensions.memory_block.map(|block| block.max_tokens),
+ inherited
+ .extensions
+ .memory_block
+ .map(|block| block.max_tokens),
Some(300)
);
let own = AgentDefinitionSpec::new()