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
test(channels): add config to runtime context for tool call tests
Steven Enamakel106ced37ac6b
diff --git a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rsindex 72bcf1d258..4d9e0a4665 100644--- a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs+++ b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs@@ -97,6 +97,15 @@ async fn process_channel_message_handles_models_command_without_llm_call() {crate::agent::tinyagents::TurnModelSource::from_model(fallback_provider),);+ let mut config = crate::config::Config::default();+ config.cloud_providers.push(crate::config::CloudProviderCreds {+ id: "p_managed_models_test".to_string(),+ slug: "openhuman".to_string(),+ label: "Managed Backend".to_string(),+ endpoint: "https://api.openhuman.ai/v1".to_string(),+ auth_style: crate::config::AuthStyle::OpenhumanJwt,+ default_model: Some("default-model".to_string()),+ });let runtime_ctx = Arc::new(ChannelRuntimeContext {relay_thread: None,channels_by_name: Arc::new(channels_by_name),@@ -120,7 +129,7 @@ async fn process_channel_message_handles_models_command_without_llm_call() {message_timeout_secs: CHANNEL_MESSAGE_TIMEOUT_SECS,multimodal: crate::config::MultimodalConfig::default(),multimodal_files: crate::config::MultimodalFileConfig::default(),- config: None,+ config: Some(Arc::new(config)),core: None,});