Skip to content

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

style: reorder imports and reformat match arm

Steven Enamakel60892a0f3260
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/mod.rs b/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
index ab3508d2ed..b2f50d4b0a 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/mod.rs
@@ -42,8 +42,8 @@ pub use bundle::{
OpenHumanHostBase, OpenHumanHostBundle, OpenHumanHostBundleFactory, OpenHumanHostBundleInputs,
OpenHumanHostInvocationInputs,
};
-pub use definition_registry::OpenHumanDefinitionRegistry;
pub(crate) use copy::OpenHumanCopyProvider;
+pub use definition_registry::OpenHumanDefinitionRegistry;
pub use run_context::{
decide_dispatch, DispatchDecision, DispatchInputs, LastTurnUsage, OpenHumanRunContext,
OpenHumanRunExt, SubagentUsageEntry, TurnDispatchState,
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
index 584be17c92..636a04f94b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs
@@ -166,7 +166,7 @@ impl FailurePolicy for HaltCopy {
count,
failure_text,
)
- .summary
+ .summary
}
fn no_progress_halt_summary(&self, consecutive: u32, tool: &str, failure_text: &str) -> String {
@@ -325,13 +325,11 @@ impl FailureScopePolicy<OpenHumanRunContext> for HostFailurePolicy {
if result.is_error && !is_command_exit_report(&failure_text) {
if let Some(kind) = stop::terminal_inference_failure_kind(heuristic) {
let halt = match kind {
- TerminalInferenceFailureKind::BudgetExhausted => {
- stop::halt_summary::budget(
- &crate::agent::tinyagents::host::OpenHumanCopyProvider,
- &call.name,
- &failure_text,
- )
- }
+ TerminalInferenceFailureKind::BudgetExhausted => stop::halt_summary::budget(
+ &crate::agent::tinyagents::host::OpenHumanCopyProvider,
+ &call.name,
+ &failure_text,
+ ),
TerminalInferenceFailureKind::ProviderConfig => {
stop::halt_summary::provider_config(
&crate::agent::tinyagents::host::OpenHumanCopyProvider,
diff --git a/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs
index 204b207f75..d3c88008bb 100644
--- a/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs
+++ b/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs
@@ -272,10 +272,8 @@ fn shared_budget_matcher_reproduces_each_legacy_matcher_on_the_corpus() {
#[test]
fn loop_guard_halt_summaries_are_byte_identical() {
- use crate::agent::tinyagents::middleware::repeated_failure::{
- user_actionable_escalation,
- };
use crate::agent::tinyagents::host::OpenHumanCopyProvider;
+ use crate::agent::tinyagents::middleware::repeated_failure::user_actionable_escalation;
use tinyagents_hooks::stop;
assert_eq!(
stop::halt_summary::budget(&OpenHumanCopyProvider, "delegate", "boom").summary,