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(agent): update orchestrator agent config and tests
Steven Enamakelf4c93699e2bd
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.tomlindex cb201577cc..7229a3e346 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/agent.toml@@ -253,8 +253,7 @@ named = [# `manage_profile_memory` (profile_memory_agent) below. These are memory-store# writes, NOT file/shell mutation — the "no write tools" rule (below) is about# editing files and running commands, which stays out.- "memory_recall",- "memory_store",+ "memory","save_preference",# The long-term goals store (goals doc over the memory binding). The# RPC/tab surface always had these; the agent could not answer "list mydiff --git a/crates/openhuman-core/src/memory/tools/collapsed_tests.rs b/crates/openhuman-core/src/memory/tools/collapsed_tests.rsindex 0ccc92d516..ca94da27c1 100644--- a/crates/openhuman-core/src/memory/tools/collapsed_tests.rs+++ b/crates/openhuman-core/src/memory/tools/collapsed_tests.rs@@ -84,13 +84,13 @@ fn an_unknown_action_falls_back_to_the_strictest_level() {#[tokio::test]async fn an_unknown_action_is_an_error_result_naming_the_valid_ones() {let result = tool()- .execute(serde_json::json!({"action": "recal"}))+ .execute(serde_json::json!({"action": "recal", "text": "x"})).await.expect("dispatch does not fail the call");assert!(result.is_error);let text = format!("{result:?}");assert!(text.contains("recal"));- assert!(text.contains("recall|store|forget"));+ assert!(text.contains("ask|keyword_search|learn"));}#[test]@@ -105,3 +105,26 @@ fn the_memory_tree_tool_is_not_a_member() {"memory_tree stays a separate tool");}++#[test]+fn each_action_maps_text_onto_its_members_arguments() {+ let ask = member_args(ACTION_ASK, &serde_json::json!({"text": " who is Ana? "})).unwrap();+ assert_eq!(ask["query"], "who is Ana?");+ assert!(ask["namespace"].is_string(), "hybrid search needs a namespace");++ let keywords = member_args(ACTION_KEYWORD_SEARCH, &serde_json::json!({"text": "ana", "limit": 3}))+ .unwrap();+ assert_eq!(keywords["query"], "ana");+ assert_eq!(keywords["limit"], 3);++ let learn = member_args(ACTION_LEARN, &serde_json::json!({"text": "Ana prefers email", "limit": 9}))+ .unwrap();+ assert_eq!(learn["content"], "Ana prefers email");+ assert!(learn.get("limit").is_none(), "a write takes no limit");+}++#[test]+fn empty_text_is_refused() {+ assert!(member_args(ACTION_ASK, &serde_json::json!({"text": " "})).is_err());+ assert!(member_args(ACTION_LEARN, &serde_json::json!({})).is_err());+}