Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(openhuman-embed): update runtime setup guidance

Steven Enamakelb8e616acddb3
diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.md
index b6a6224294..3bc9dbae82 100644
--- a/crates/openhuman-embed/README.md
+++ b/crates/openhuman-embed/README.md
@@ -498,18 +498,12 @@ has the resulting binary sizes and per-agent memory.
dropped.
- Build the tokio runtime yourself. A turn is a deep async state machine,
and a nested sub-agent overflows tokio's default 2 MiB worker stack, so
- `#[tokio::main]` is not enough. The constants live in the core crate, so
- the host needs the `openhuman` package as a dependency to name them:
+ `#[tokio::main]` is not enough. `embed::process` builds one sized for
+ turns (`AGENT_WORKER_STACK_BYTES`, `MAX_BLOCKING_THREADS`, both re-exported
+ there), so the host needs no core dependency to name them:
```rust,no_run
- use openhuman_core::core::runtime::{AGENT_WORKER_STACK_BYTES, MAX_BLOCKING_THREADS};
-
- let runtime = tokio::runtime::Builder::new_multi_thread()
- .enable_all()
- .thread_stack_size(AGENT_WORKER_STACK_BYTES)
- .max_blocking_threads(MAX_BLOCKING_THREADS)
- .build()
- .expect("tokio runtime");
+ let runtime = openhuman_embed::process::tokio_runtime().expect("tokio runtime");
```
- Access has two halves. The autonomy tier drives `SecurityPolicy`, and the
@@ -548,6 +542,6 @@ cargo test -p openhuman-embed --features inference,mcp,skills --test runtime_age
```
The repository-root `examples/embed_headless.rs` and `examples/embed_kernel.rs`
-drive `CoreBuilder` directly, without this crate. They are `[[example]]`
-targets of `openhuman-cli`:
+use this crate's `Runtime` (`Runtime::builder()`, then `core_runtime().invoke`
+for raw RPC methods). They are `[[example]]` targets of `openhuman-cli`:
`cargo run -p openhuman-cli --example embed_headless`.