Skip to content

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

fix(delegate_graph): correct tool name in missing agent_id error

Steven Enamakel91785099f87d
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
index 4e95969c44..dc85844b49 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
@@ -206,7 +206,7 @@ impl DelegateGraphTool {
};
let agent_id = match args.get("agent_id").and_then(|v| v.as_str()) {
Some(s) if !s.trim().is_empty() => s.trim().to_string(),
- _ => return Ok(ToolResult::error("delegate: `agent_id` is required.")),
+ _ => return Ok(ToolResult::error("delegate_graph: `agent_id` is required.")),
};
let task = match args.get("task").and_then(|v| v.as_str()) {
Some(s) if !s.trim().is_empty() => s.to_string(),
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/bundle_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/bundle_tests.rs
index 544b1096dd..8a343145a2 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/bundle_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/bundle_tests.rs
@@ -30,9 +30,11 @@ fn inputs() -> (OpenHumanHostBundleInputs, OpenHumanRunContext) {
}
#[test]
-fn factory_records_every_concrete_adapter_in_one_bundle() {
+fn factory_preserves_the_selected_model_and_host_authority() {
let (inputs, turn) = inputs();
+ let selected_model = inputs.model_resolver.clone();
let host = OpenHumanHostBundleFactory::build(inputs, &turn);
+ assert!(Arc::ptr_eq(&selected_model, &host.capabilities.models));
let context: Arc<dyn ContextComposer> = host.context.clone();
let definitions: Arc<dyn DefinitionRegistry> = host.definitions.clone();