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: files changed crates/openhuman-embed/src/call.rs
Steven Enamakel0a587347e10c
diff --git a/crates/openhuman-embed/src/call.rs b/crates/openhuman-embed/src/call.rsindex d517bae4b1..aa70bfbeef 100644--- a/crates/openhuman-embed/src/call.rs+++ b/crates/openhuman-embed/src/call.rs@@ -52,6 +52,22 @@ pub(crate) async fn call<P, R>(method: &'static str,params: P,) -> Result<R, CoreError>+where+ P: Serialize,+ R: DeserializeOwned,+{+ call_in(rt, std::sync::Arc::clone(rt.context()), method, params).await+}++/// [`call`] under `ctx` instead of the runtime's own context — a SaaS+/// profile's, for instance, so the dispatch gate and every handler read that+/// profile's scope ([`CoreRuntime::invoke_in`]).+pub(crate) async fn call_in<P, R>(+ rt: &CoreRuntime,+ ctx: std::sync::Arc<openhuman_core::core::runtime::CoreContext>,+ method: &'static str,+ params: P,+) -> Result<R, CoreError>whereP: Serialize,R: DeserializeOwned,@@ -62,7 +78,7 @@ wherelog::debug!("[embed] call method={method}");let raw = rt- .invoke(method, params)+ .invoke_in(ctx, method, params).await.map_err(|e| CoreError::from_rpc_string(method, e))?;