Skip to content

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

feat(delegate_graph): add graph delegation tool and http capability

Steven Enamakelf4249f19b055
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 bae42c47de..9e0c14135d 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
@@ -162,7 +162,10 @@ impl Tool for DelegateGraphTool {
_options: ToolCallOptions,
tool_context: Option<&dyn ToolRunContext>,
) -> anyhow::Result<ToolResult> {
- let mut run_context = crate::agent::tinyagents::host::OpenHumanRunContext::new();
+ let mut run_context = crate::agent::tinyagents::host::OpenHumanRunContext::new().with_core(
+ crate::agent::tinyagents::host::run_context::dispatch_ctx_for_tool(tool_context)
+ .into_core(),
+ );
run_context.thread_id = tool_context
.and_then(ToolRunContext::thread_id)
.map(ToOwned::to_owned);
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/http.rs b/crates/openhuman-core/src/flows/tinyflows/caps/http.rs
index 70ab5bd416..85ba896c2f 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/http.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/http.rs
@@ -198,6 +198,7 @@ impl HttpClient for OpenHumanHttp {
}
let tool = http_request_tool(
+ &crate::core::runtime::DispatchCtx::ambient(),
self.security.clone(),
self.http_config.allowed_domains.clone(),
self.http_config.max_response_size,