The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(tests): move integration tests into a dedicated test directory
Steven Enamakelf854a384383a
diff --git a/crates/openhuman-core/src/channels/context_tests.rs b/crates/openhuman-core/src/channels/context_tests.rsindex d14c0ba316..5633e0ae60 100644--- a/crates/openhuman-core/src/channels/context_tests.rs+++ b/crates/openhuman-core/src/channels/context_tests.rs@@ -48,14 +48,11 @@ fn runtime_context() -> ChannelRuntimeContext {channels_by_name: Arc::new(HashMap::new()),turn_model_source: Some(crate::agent::tinyagents::TurnModelSource::from_model(model)),default_provider: Arc::new("default".into()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![Box::new(DummyTool) as Box<dyn Tool>]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("prompt"),model: Arc::new("model".into()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 1,- min_relevance_score: 0.4,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),diff --git a/crates/openhuman-core/src/channels/routes_tests.rs b/crates/openhuman-core/src/channels/routes_tests.rsindex 130195557f..001dcf1363 100644--- a/crates/openhuman-core/src/channels/routes_tests.rs+++ b/crates/openhuman-core/src/channels/routes_tests.rs@@ -121,14 +121,11 @@ fn runtime_context(workspace_dir: PathBuf) -> ChannelRuntimeContext {channels_by_name: Arc::new(HashMap::new()),turn_model_source: Some(crate::agent::tinyagents::TurnModelSource::from_model(model)),default_provider: Arc::new("openai".into()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![Box::new(DummyTool) as Box<dyn Tool>]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("prompt"),model: Arc::new("reasoning-v1".into()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 1,- min_relevance_score: 0.4,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: TurnModelSourceCacheMap::default(),route_overrides: RouteSelectionMap::default(),diff --git a/crates/openhuman-core/src/channels/tests/discord_integration.rs b/crates/openhuman-core/src/channels/tests/discord_integration.rsindex 0fbccb0041..caa10bd639 100644--- a/crates/openhuman-core/src/channels/tests/discord_integration.rs+++ b/crates/openhuman-core/src/channels/tests/discord_integration.rs@@ -108,14 +108,11 @@ fn make_discord_ctx(channels_by_name: Arc::new(channels),turn_model_source: Some(crate::agent::tinyagents::TurnModelSource::from_model(model)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 1,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),diff --git a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rsindex 07712a6f7a..6c8545687a 100644--- a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs+++ b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs@@ -122,14 +122,11 @@ async fn message_dispatch_processes_messages_in_parallel() {}),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -197,14 +194,11 @@ async fn process_channel_message_cancels_scoped_typing_task() {}),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -287,14 +281,11 @@ async fn dispatch_routes_through_agent_run_turn_bus_handler() {Arc::new(super::common::DummyModel),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -373,14 +364,11 @@ async fn channel_processed_event_records_resolved_agent_route() {Arc::new(super::common::DummyModel),)),default_provider: Arc::new("requested-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("requested-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -487,14 +475,11 @@ async fn process_channel_message_hardens_multimodal_files_against_smuggled_markeArc::new(super::common::DummyModel),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -572,14 +557,11 @@ async fn process_channel_message_hardens_against_relative_path_markers() {Arc::new(super::common::DummyModel),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),diff --git a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rsindex 17041c6738..34fb4017aa 100644--- a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs+++ b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs@@ -29,14 +29,11 @@ async fn process_channel_message_executes_native_tool_calls() {Arc::new(ToolCallingModel),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![Box::new(MockPriceTool)]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 10,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -102,14 +99,11 @@ async fn process_channel_message_handles_models_command_without_llm_call() {Arc::clone(&default_provider),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("default-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 5,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(provider_cache_seed)),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -203,14 +197,11 @@ async fn process_channel_message_uses_route_override_provider_and_model() {Arc::clone(&default_provider),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("default-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 5,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(provider_cache_seed)),route_overrides: Arc::new(Mutex::new(route_overrides)),@@ -256,14 +247,11 @@ async fn process_channel_message_respects_configured_max_tool_iterations_above_d}),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![Box::new(MockPriceTool)]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 12,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),@@ -316,14 +304,11 @@ async fn process_channel_message_reports_configured_max_tool_iterations_limit()}),)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![Box::new(MockPriceTool)]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 3,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),diff --git a/crates/openhuman-core/src/channels/tests/telegram_integration.rs b/crates/openhuman-core/src/channels/tests/telegram_integration.rsindex 1f0a78b0b7..ba705b8090 100644--- a/crates/openhuman-core/src/channels/tests/telegram_integration.rs+++ b/crates/openhuman-core/src/channels/tests/telegram_integration.rs@@ -84,14 +84,11 @@ fn make_test_context(channels_by_name: Arc::new(channels),turn_model_source: Some(crate::agent::tinyagents::TurnModelSource::from_model(model)),default_provider: Arc::new("test-provider".to_string()),- memory: crate::memory::guard::in_memory::guarded_fixed_recall(Vec::new()),tools_registry: Arc::new(vec![]),system_prompt: crate::channels::ChannelSystemPrompt::fixed("test-system-prompt"),model: Arc::new("test-model".to_string()),temperature: 0.0,- auto_save_memory: false,max_tool_iterations: 1,- min_relevance_score: 0.0,conversation_histories: Arc::new(Mutex::new(HashMap::new())),turn_model_source_cache: Arc::new(Mutex::new(HashMap::new())),route_overrides: Arc::new(Mutex::new(HashMap::new())),