Skip to content

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

test(gitbooks): add module client import and response trait

Steven Enamakel14925eddc755
diff --git a/crates/openhuman-core/src/tools/impl/network/gitbooks_tests.rs b/crates/openhuman-core/src/tools/impl/network/gitbooks_tests.rs
index 5bb49a6a69..a37d2988cb 100644
--- a/crates/openhuman-core/src/tools/impl/network/gitbooks_tests.rs
+++ b/crates/openhuman-core/src/tools/impl/network/gitbooks_tests.rs
@@ -1,5 +1,8 @@
use super::*;
+#[cfg(feature = "modules")]
+use crate::modules::client::ModuleClient;
+
#[cfg(feature = "modules")]
#[derive(Clone, Default)]
struct MockProviderState {
@@ -84,7 +87,7 @@ async fn mock_module_client(
#[cfg(feature = "modules")]
async fn mock_gitbooks_provider() -> (String, std::sync::Arc<std::sync::Mutex<Vec<Value>>>) {
- use axum::{extract::State, routing::post, Json, Router};
+ use axum::{extract::State, response::IntoResponse, routing::post, Json, Router};
let calls = std::sync::Arc::new(std::sync::Mutex::new(Vec::new()));
let app = Router::new()