Skip to content

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

refactor(config): reorder composio mode constants

Steven Enamakel180495812da8
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index b7fcc835aa..e69feb388a 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -132,8 +132,8 @@ pub mod config {
pub mod schema {
// tinyhumans integrations: the Composio routing-mode strings.
pub use openhuman_core::config::schema::{
- COMPOSIO_MODE_BACKEND, COMPOSIO_MODE_DIRECT, COMPOSIO_MODE_DISABLED,
- DelegateAgentConfig, ModelRouteConfig, TeamModelConfig,
+ DelegateAgentConfig, ModelRouteConfig, TeamModelConfig, COMPOSIO_MODE_BACKEND,
+ COMPOSIO_MODE_DIRECT, COMPOSIO_MODE_DISABLED,
};
pub mod cloud_providers {
pub use openhuman_core::config::schema::cloud_providers::{
diff --git a/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs b/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs
index a60bbf94cf..b756aaf1f4 100644
--- a/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs
@@ -190,8 +190,8 @@ fn managed_envelope_gate_rejects_byo_payload_carrying_error_code() {
#[test]
fn hosted_classifier_drives_core_observability_without_core_token_ownership() {
- use openhuman_embed::__host::inference_registry::register_backend_error_classifier;
use openhuman_embed::__host::core::observability::{expected_error_kind, ExpectedErrorKind};
+ use openhuman_embed::__host::inference_registry::register_backend_error_classifier;
use std::sync::Arc;
register_backend_error_classifier(Arc::new(super::classify));
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
index 644c813ebb..171fd308a0 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
@@ -1,5 +1,5 @@
-use super::super::managed_reasoning::{apply_reasoning_hint, with_thread_id};
use super::super::managed_reasoning::REASONING_OFF_METADATA_KEY;
+use super::super::managed_reasoning::{apply_reasoning_hint, with_thread_id};
use super::*;
use serde_json::Value;
use tinyinference_llm::model::ChatModel;
@@ -99,8 +99,14 @@ fn managed_model_supports_only_serializable_native_media_inputs() {
#[test]
fn resolve_model_normalizes_blank_and_trims_non_empty_values() {
- assert_eq!(resolve_model(""), super::super::tiers::MODEL_MANAGED_DEFAULT);
- assert_eq!(resolve_model(" \t\n"), super::super::tiers::MODEL_MANAGED_DEFAULT);
+ assert_eq!(
+ resolve_model(""),
+ super::super::tiers::MODEL_MANAGED_DEFAULT
+ );
+ assert_eq!(
+ resolve_model(" \t\n"),
+ super::super::tiers::MODEL_MANAGED_DEFAULT
+ );
assert_eq!(resolve_model(" reasoning-v1 "), "reasoning-v1");
assert_eq!(resolve_model("hint:reasoning"), "hint:reasoning");
}