Skip to content

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

feat(core): add tool_groups parameter to init_with_config

Steven Enamakel35920feb548e
diff --git a/src/core/runtime/context.rs b/src/core/runtime/context.rs
index 4e57f0df64..59d90883e0 100644
--- a/src/core/runtime/context.rs
+++ b/src/core/runtime/context.rs
@@ -121,7 +121,7 @@ impl CoreContext {
bool,
Option<crate::openhuman::config::Config>,
)> {
- Self::init_with_config(host_kind, token, domains, None).await
+ Self::init_with_config(host_kind, token, domains, Default::default(), None).await
}
/// [`init`](Self::init) with an optional caller-supplied configuration.
@@ -139,6 +139,7 @@ impl CoreContext {
host_kind: HostKind,
token: &TokenSource,
domains: crate::core::runtime::DomainSet,
+ tool_groups: crate::openhuman::tools::toolpacks::ToolGroups,
preloaded_config: Option<crate::openhuman::config::Config>,
) -> anyhow::Result<(
Arc<CoreContext>,
@@ -251,7 +252,7 @@ impl CoreContext {
memory_subsystem,
}),
domains,
- tool_groups: Default::default(),
+ tool_groups,
embedder_config,
});