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
refactor(session_host): use runtime host policy types
Steven Enamakelc1876234a316
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rsindex c615d7e006..6ab180773a 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs@@ -142,7 +142,7 @@ fn a_host_only_session_runs_a_definition_that_cannot_delegate_or_act() {#[tokio::test]async fn the_host_only_policy_admits_only_host_names() {- let policy = super::super::host_only::HostOnlyToolPolicy::new(+ let policy = tinyagents_runtime::HostOnlyToolPolicy::new(["read_file".to_string()].into_iter().collect(),None,);@@ -180,7 +180,7 @@ async fn the_host_only_policy_still_consults_the_hosts_own_gate() {PolicyDecision::deny("host says no")}}- let policy = super::super::host_only::HostOnlyToolPolicy::new(+ let policy = tinyagents_runtime::HostOnlyToolPolicy::new(["read_file".to_string()].into_iter().collect(),Some(Arc::new(DenyAll)),);diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex 05ac605097..a14e8bbe76 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -372,7 +372,7 @@ impl OpenHumanSessionHost {crate::agent_registry::host_definition::AgentDefinitionRegistry::current(),) {// Host-only: no delegation; the host's names join an empty belt.- _ if host_only => (Vec::new(), Some(super::host_only::empty_belt())),+ _ if host_only => (Vec::new(), Some(super::host_policy::empty_belt())),(Some(def), Some(_reg)) => {let synthed = if should_synthesize_delegation_tools(def) {crate::integrations::composio::orchestrator_actions::collect_orchestrator_tools(@@ -720,7 +720,7 @@ impl OpenHumanSessionHost {)?;let session_definition = super::host_tools::scope_def(target_def, &merged_host_tools);let host_policy =- super::host_only::session_policy(host_only, &tools, merged_host_tools.policy);+ super::host_policy::session_policy(host_only, &tools, merged_host_tools.policy);let withheld_tool_names = merged_host_tools.withheld;let mut builder = OpenHumanSessionHost::builder().tools(tools)