The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
description: "Use local rustdoc and source-derived indexes for the complete Embed public surface."
Embedding API reference
Generate usable local Rust API documentation with cargo doc -p openhuman-embed --no-deps --open. Include --features mcp,skills,channels,storage-sqlite for the facade gates used by the offline examples, or select the feature set your host actually builds. For all exported optional surfaces use --all-features.
The crate is currently publish = false; docs.rs links are a publication metadata target, not a claim that a live package reference exists. Local rustdoc and canonical facade source are the current complete reference.
Generated inventories
- API index: names exported by the public facade and a versioned runtime report.
- Machine-readable API index: export names, builder signatures, capabilities and page paths.
- RuntimeBuilder setters: current public consuming setters with source locations.
- Compiled feature matrix: the actual core gates from the default-feature capability-report executable.
- Cookbook: example titles, run modes and required named facade features from source headers.
The generated setter list is the authoritative knob inventory. It excludes static presets and borrowed inspection/build/run methods; those belong in local rustdoc. Core compiled gates, runtime module/domain selection and named facade exports are separate availability layers.
Public surface by purpose
| Purpose | API starting point |
|---|---|
| Boot and inspect a host | RuntimeBuilder, Runtime, RuntimeInfo |
| Register and remove scoped agents | AgentSpec, Agent, AgentDefinitionSpec, RemoveAgent |
| Configure execution and decisions | Access, SandboxModeSpec, Approvals, ApprovalHandler |
| Execute or stream native turns | Turn, TurnOutcome, TurnStream, StreamEvent |
| Supply custom model adapters | Provider and providers::ChatModel |
| Stateless generation | Completer, CompletionRequest, structured response helpers |
| Typed non-turn domains | Memory and cron facades, config/auth/artifacts/chat surface |
| Replace infrastructure ports | seams, session_store, memory engine and provider contracts |
| Serve isolated customer profiles | ProfileRuntime, ProfileHandle, SaasConfig |
Versioned capability data
let info = runtime.capabilities();
assert_eq!(info.schema_version, 1);
assert!(info.defaults.routed_provider);
let serialized = serde_json::to_string(&info)?;
assert!(!serialized.contains("sk-test"));
assert!(!serialized.contains(&provider.uri()));
assert!(!serialized.contains(&runtime.workspace_dir().display().to_string()));
println!("{}", serde_json::to_string_pretty(&info)?);
Complete runnable example, including runtime construction, imports and fixture setup.
The report's schema version is explicit. Read its fields rather than inferring capabilities from preset names, and handle future schema changes deliberately. It omits endpoint, credential, prompt and workspace values so hosts can expose build metadata without exposing private configuration.