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: add missing test files for agent learning, orchestration, memory, and web chat
Steven Enamakeld8f395cfe5b8
diff --git a/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs b/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rsindex 3569b299ab..3e959e0332 100644--- a/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs+++ b/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs@@ -1,7 +1,6 @@use super::*;use crate::agent::prompts::LearnedContextData;use crate::memory::test_support::NoopMemory;-use crate::memory::Memory;use async_trait::async_trait;use std::collections::HashSet;use std::path::Path;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rsindex 62c3f0eaf8..f3fe4c5ffc 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_tests.rs@@ -4,7 +4,6 @@ use crate::agent::harness::fork_context::{with_parent_context, ParentExecutionCouse crate::agent::prompts::ToolCallFormat;use crate::config::AgentConfig;use crate::memory::test_support::NoopMemory;-use crate::memory::Memory;use std::collections::HashSet;use std::path::Path;use std::sync::Arc;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex c3c5bdaf78..a71b1f1534 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -5,7 +5,6 @@ use crate::agent::messages::ChatMessage;use crate::agent::prompts::{ConnectedIntegration, ToolCallFormat};use crate::memory::conversations;use crate::memory::test_support::NoopMemory;-use crate::memory::Memory;use async_trait::async_trait;use parking_lot::Mutex;use serde_json::json;diff --git a/crates/openhuman-core/src/memory/ops/mod.rs b/crates/openhuman-core/src/memory/ops/mod.rsindex 623dfc1c30..a7caf94bef 100644--- a/crates/openhuman-core/src/memory/ops/mod.rs+++ b/crates/openhuman-core/src/memory/ops/mod.rs@@ -88,11 +88,10 @@ pub use tool_memory::{// ---------------------------------------------------------------------------#[cfg(test)]-pub(crate) use envelope::{error_envelope, memory_counts, memory_request_id};+pub(crate) use envelope::memory_request_id;#[cfg(test)]pub(crate) use helpers::{- build_retrieval_context, chunk_metadata, default_category, default_priority,- default_source_type, extract_entity_type, filter_hits_by_document_ids,+ build_retrieval_context, chunk_metadata, extract_entity_type, filter_hits_by_document_ids,format_llm_context_message, maybe_retrieval_context, relation_identity, relation_metadata,timestamp_to_rfc3339, validate_memory_relative_path,};diff --git a/crates/openhuman-core/src/memory/ops_tests.rs b/crates/openhuman-core/src/memory/ops_tests.rsindex 9b98d18551..d68daa18ed 100644--- a/crates/openhuman-core/src/memory/ops_tests.rs+++ b/crates/openhuman-core/src/memory/ops_tests.rs@@ -156,8 +156,7 @@ use super::{chunk_metadata, extract_entity_type, maybe_retrieval_context, memory_request_id,relation_identity, relation_metadata, timestamp_to_rfc3339, validate_memory_relative_path,};-use crate::core::Outcome;-use crate::memory::{ApiEnvelope, MemoryRetrievalContext};+use crate::memory::MemoryRetrievalContext;#[test]fn memory_request_id_is_nonempty_and_unique() {diff --git a/crates/openhuman-core/src/web_chat/web_tests.rs b/crates/openhuman-core/src/web_chat/web_tests.rsindex 6ccc63d700..cb92631fa9 100644--- a/crates/openhuman-core/src/web_chat/web_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests.rs@@ -4,9 +4,9 @@ use super::{channel_web_queue_status, classify_inference_error, drain_queued_turns_for_test,event_session_id_for, generic_inference_error_user_message,in_flight_entries_for_test, inference_budget_exceeded_user_message,- is_inference_budget_exceeded_error, json_output, key_for, locale_reply_directive,- normalize_model_override, optional_f64, optional_string, parallel_in_flight_entries_for_test,- provider_role_for_model_override, required_string, schemas, sentry_suppression_reason,+ is_inference_budget_exceeded_error, key_for, locale_reply_directive,+ normalize_model_override, parallel_in_flight_entries_for_test,+ provider_role_for_model_override, schemas, sentry_suppression_reason,set_test_forced_run_chat_task_error, set_test_run_chat_task_block, start_chat,subscribe_web_channel_events, ChatRequestMetadata, ClassifiedError, StartChatError,TestRunChatTaskBlock, WebChatParams,