Skip to content

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

feat(embed): expose RuntimeConfig in public API

Steven Enamakelcccd4565583b
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index 8cfc51de19..b6ec473fd4 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -28,6 +28,7 @@
pub use openhuman_core::agent_progress;
pub use openhuman_core::embed::*;
pub use openhuman_core::openhuman::agent::turn_origin::{AgentTurnOrigin, TrustedAutomationSource};
+pub use openhuman_core::openhuman::config::Config as RuntimeConfig;
pub use openhuman_core::openhuman::security::TrustedAccess;
pub use openhuman_core::openhuman::tools::toolpacks::{GroupMode, ToolGroups};
pub use openhuman_core::{
diff --git a/crates/openhuman-embed/tests/public_api.rs b/crates/openhuman-embed/tests/public_api.rs
index 8bc5a7e74c..c73888e65c 100644
--- a/crates/openhuman-embed/tests/public_api.rs
+++ b/crates/openhuman-embed/tests/public_api.rs
@@ -3,7 +3,7 @@ use std::sync::Arc;
use openhuman_embed::{
set_product_identity, Access, AgentTurnOrigin, Core, CoreBuilder, CoreRuntime, DomainSet,
GroupMode, Harness, HostKind, ProductIdentity, Provider, ServiceSet, ToolGroups, TrustedAccess,
- TrustedAutomationSource, Workspace,
+ TrustedAutomationSource, RuntimeConfig, Workspace,
};
#[test]
@@ -33,6 +33,9 @@ fn exposes_the_host_facing_embedding_contract() {
let _ = DomainSet::embedded;
let _ = ServiceSet::none;
let _ = HostKind::Library;
+ let runtime_config = RuntimeConfig::default();
+ let _ = CoreBuilder::new(HostKind::Library).config(runtime_config.clone());
+ let _ = Harness::builder().config(runtime_config);
let _ = ToolGroups::none().with("documents", GroupMode::Advertised);
let automation = AgentTurnOrigin::TrustedAutomation {
job_id: "embed-public-api".to_string(),