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
docs(embed): document core_runtime and re-export embed facade
Steven Enamakele0e074d31032
diff --git a/crates/openhuman-embed/src/runtime/mod.rs b/crates/openhuman-embed/src/runtime/mod.rsindex b556a736f7..f8b02229e0 100644--- a/crates/openhuman-embed/src/runtime/mod.rs+++ b/crates/openhuman-embed/src/runtime/mod.rs@@ -352,9 +352,19 @@ impl Runtime {.expect("runtime core is present until the last guard owner drops")}- /// The core runtime under this handle, for the transport layer- /// (`openhuman-rpc` serves it) — not for turns, which belong to agents.- #[doc(hidden)]+ /// The core runtime under this handle: the controller registry a host+ /// dispatches JSON-RPC methods through in-process+ /// ([`CoreRuntime::invoke`]).+ ///+ /// This is the operator-host escape hatch. The JSON-RPC server serves it,+ /// and the terminal UI drives its threads, config and auth screens with+ /// it. Library embedders should prefer [`Runtime::agent`] for turns and+ /// [`Runtime::core`] for typed config/auth access, because a raw invoke+ /// carries no agent's provider route or access tier.+ ///+ /// The handle stays valid while this `Runtime` is alive. Keep the+ /// `Runtime` for the whole session: dropping it tears the core down even+ /// if a clone of this `Arc` is still held.pub fn core_runtime(&self) -> &Arc<CoreRuntime> {self.core_ref().raw()}diff --git a/crates/openhuman-rpc/src/lib.rs b/crates/openhuman-rpc/src/lib.rsindex 2d6534e612..f6263f5ea5 100644--- a/crates/openhuman-rpc/src/lib.rs+++ b/crates/openhuman-rpc/src/lib.rs@@ -28,9 +28,19 @@//! - [`host`]: the shared host boot, one entry per host shape//! ([`host::cli`], [`host::desktop`], [`host::tui`]).//! - [`tinyhumans`] (and through it `tinyhumans::embed`): the curated library-//! facade hosts configure a runtime with.+//! facade hosts configure a runtime with. [`embed`] is the same crate as+//! `tinyhumans::embed`, re-exported here so a host (app, CLI, TUI) that+//! depends on this crate alone names it in one step.+//!+//! Hosts depend on `openhuman-rpc` and nothing else from this repository+//! (`scripts/ci/check-crate-chain.mjs` enforces it). What they reach is the+//! curated surface above; the doc-hidden `__host` list stays internal to the+//! layers.pub use openhuman_tinyhumans as tinyhumans;+/// The embed facade (`openhuman_embed`): runtime builder, process helpers,+/// config/artifact/chat-surface facades. Same crate as `tinyhumans::embed`.+pub use openhuman_tinyhumans::embed;/// Core internals for this crate's own modules, through embed's doc-hidden/// `__host` list. Crate-private: never re-exported on a public path.