Skip to content

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

feat(runtime): add builder for runtime construction

Steven Enamakel8603d4680220
diff --git a/crates/openhuman-core/src/core/runtime/builder.rs b/crates/openhuman-core/src/core/runtime/builder.rs
index 26349589d1..e6863f7e71 100644
--- a/crates/openhuman-core/src/core/runtime/builder.rs
+++ b/crates/openhuman-core/src/core/runtime/builder.rs
@@ -700,6 +700,13 @@ impl CoreRuntime {
&self.ctx
}
+ /// The config this runtime booted with: the caller-supplied one, or the
+ /// one `build()` discovered from `config.toml` and the environment.
+ /// `None` when discovery failed (workspace-bound stores were skipped).
+ pub fn config(&self) -> Option<&Config> {
+ self.config.as_ref()
+ }
+
/// Dispatch an RPC method in-process — the same path the HTTP `/rpc` handler
/// and the CLI use ([`crate::core::invoke::invoke_method`]). No network involved.
pub async fn invoke(