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
feat(embed): re-export current_tenant and TenantKey
Steven Enamakel17529868cffb
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rsindex 1a003b7314..765559b187 100644--- a/crates/openhuman-embed/src/lib.rs+++ b/crates/openhuman-embed/src/lib.rs@@ -82,6 +82,8 @@ pub use openhuman_core::backend::{};pub use openhuman_core::config::ComposioHostCredential;pub use openhuman_core::config::Config as RuntimeConfig;+/// The exact ambient tenant, inherited across profile turns and their scoped tasks.+pub use openhuman_core::core::runtime::{current_tenant, TenantKey};pub use openhuman_core::security::TrustedAccess;pub use openhuman_core::tools::toolpacks::{GroupMode, ToolGroups};// The seam `AgentSpec::tools` needs: the belt types, and `Tool` itself from thediff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rsindex b5b6f310dc..5b6232e762 100644--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs@@ -38,7 +38,7 @@ impl Tool for TenantTool {json!({"type":"object","properties":{}})}async fn execute(&self, _: Value) -> anyhow::Result<ToolResult> {- let tenant = openhuman_core::core::runtime::current_tenant()?;+ let tenant = openhuman_embed::current_tenant()?;let profile = tenant.profile.expect("profile tool always has a tenant");match openhuman_embed::current_turn_origin().expect("a host turn has its original route") {openhuman_embed::AgentTurnOrigin::WebChat { thread_id, .. } => {@@ -148,7 +148,7 @@ async fn scenario() {let engine = Arc::new(ReferenceEngine::new());let runtime = ProfileRuntime::builder(SaasConfig::new(root.path())).tools(move |turn| {- let profile = openhuman_core::core::runtime::current_tenant()+ let profile = openhuman_embed::current_tenant().unwrap().profile.unwrap();