Skip to content

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

style(jev): reorder imports and wrap long lines

Steven Enamakel0e787c7dfc8a
diff --git a/crates/openhuman-tinyhumans/src/jev/ranker.rs b/crates/openhuman-tinyhumans/src/jev/ranker.rs
index c952899766..57a6c91945 100644
--- a/crates/openhuman-tinyhumans/src/jev/ranker.rs
+++ b/crates/openhuman-tinyhumans/src/jev/ranker.rs
@@ -13,8 +13,8 @@ use openhuman_embed::__host::agent::tinyagents::discovery::{
embedding_provider_is_usable, embedding_tool_ranker_in,
};
use openhuman_embed::__host::config::Config;
-use openhuman_embed::__host::security::approval::ApprovalChatContext;
use openhuman_embed::__host::inference::embedding_host::EmbeddingModel;
+use openhuman_embed::__host::security::approval::ApprovalChatContext;
use tinyjevclient::Client;
use tinytools::{RankCandidate, RankContext, RankError, RankHit, ToolRanker};
use tinytools_jev::{JevRanker, JevRankerConfig, JevStrategy};
diff --git a/crates/openhuman-tinyhumans/src/jev/ranker_tests.rs b/crates/openhuman-tinyhumans/src/jev/ranker_tests.rs
index 6857542a1a..f52186a05b 100644
--- a/crates/openhuman-tinyhumans/src/jev/ranker_tests.rs
+++ b/crates/openhuman-tinyhumans/src/jev/ranker_tests.rs
@@ -69,7 +69,9 @@ fn no_embedding_provider_disables_the_search() {
..Config::default()
};
config.memory.embedding_provider = "none".into();
- let err = retriever_for(&config, None, &default_embedder()).err().map(|e| e.to_string());
+ let err = retriever_for(&config, None, &default_embedder())
+ .err()
+ .map(|e| e.to_string());
assert!(
err.as_deref()
.is_some_and(|e| e.contains("no usable embedding provider")),
@@ -89,7 +91,9 @@ fn quiet_config(tmp: &tempfile::TempDir) -> Config {
/// An embedder that records the chat each provider was built for and embeds
/// nothing (the `none` provider), so a search stops at "no usable embedding
/// provider" after the retriever was requested.
-fn recording_embedder(seen: Arc<std::sync::Mutex<Vec<Option<ApprovalChatContext>>>>) -> EmbedderFactory {
+fn recording_embedder(
+ seen: Arc<std::sync::Mutex<Vec<Option<ApprovalChatContext>>>>,
+) -> EmbedderFactory {
Arc::new(move |config, chat| {
seen.lock().unwrap().push(chat.clone());
let mut quiet = config.clone();
diff --git a/vendor/tinyagents b/vendor/tinyagents
index a3ffe6f340..aa5476fa48 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit a3ffe6f34023d9c57da3e29860caefee98fbbbb9
+Subproject commit aa5476fa48092d9bf051fbd2d1bf07f14cc9f331