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(agent): update controller schema lookups to registry API
Steven Enamakel55ee6ee4b325
diff --git a/crates/openhuman-embed/src/agent/README.md b/crates/openhuman-embed/src/agent/README.mdindex 92a732efda..01d50142ec 100644--- a/crates/openhuman-embed/src/agent/README.md+++ b/crates/openhuman-embed/src/agent/README.md@@ -153,8 +153,8 @@ See the runnable [host_tools example](../../examples/host_tools.rs), region `hos- What a turn does once dispatched (the agent loop, transcripts, tool-callparsing) belongs to [`vendor/tinyagents`](../../../../vendor/tinyagents/); the definition types and- `agent_chat_for` belong to the core (`openhuman_core::agent::harness` and- `inference::host_runtime`).+ `agent_chat_for` belong to the core (`openhuman_core::agent_runs::agent_chat`+ and `openhuman_core::agent::harness`).- Process-scoped state (keyring, bus, services, the registered domain set)belongs to the runtime. See [`../runtime/README.md`](../runtime/README.md)and the crate README's list of settings that are still runtime-wide.diff --git a/crates/openhuman-embed/src/turn_tests.rs b/crates/openhuman-embed/src/turn_tests.rsindex 28f669396a..ccf33abb00 100644--- a/crates/openhuman-embed/src/turn_tests.rs+++ b/crates/openhuman-embed/src/turn_tests.rs@@ -14,10 +14,14 @@ use serde_json::json;/// controller it is sent to.#[test]fn turn_request_field_names_match_the_controller() {- let schema = openhuman_core::inference::host_runtime::all_local_inference_controller_schemas()+ let schema = openhuman_core::core::all::all_registered_controllers().into_iter()- .find(|s| s.namespace == "inference" && s.function == "agent_chat")+ .find(|controller| {+ controller.schema.namespace == "inference"+ && controller.schema.function == "agent_chat"+ }).expect("inference.agent_chat is a registered controller");+ let schema = schema.schema;let declared: std::collections::HashSet<&str> =schema.inputs.iter().map(|field| field.name).collect();@@ -195,10 +199,14 @@ fn sanitize_redacts_unparseable_urls() {/// discovered by an agent answering with no memory of the conversation.#[test]fn the_controller_declares_nowhere_for_a_seed_to_travel() {- let schema = openhuman_core::inference::host_runtime::all_local_inference_controller_schemas()+ let schema = openhuman_core::core::all::all_registered_controllers().into_iter()- .find(|s| s.namespace == "inference" && s.function == "agent_chat")+ .find(|controller| {+ controller.schema.namespace == "inference"+ && controller.schema.function == "agent_chat"+ }).expect("inference.agent_chat is a registered controller");+ let schema = schema.schema;// An allowlist, not a denylist of suspicious names: a future input called// `context` or `transcript` could carry history just as well, and a