Skip to content

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

feat(tinyagents): expose host graph topologies

Steven Enamakel16e9a27f4679
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
index 8affe97192..7ab5db9a29 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
@@ -666,6 +666,13 @@ pub(crate) fn capability_diagnostics(
diagnostics
}
+/// Graph descriptors that remain part of OpenHuman's host capability surface.
+/// Team and workflow graphs were used only by the retired graph-workflow
+/// feature; delegation remains live for sub-agent orchestration.
+pub(crate) fn host_graph_topologies() -> Vec<tinyagents_graph::GraphTopologyReport> {
+ tinyagents_orchestration::topology::all_graph_topologies()
+}
+
#[cfg(test)]
#[path = "tool_registration_tests.rs"]
diff --git a/tests/json_rpc_e2e.rs b/tests/json_rpc_e2e.rs
index 667b70a92f..acc7c07954 100644
--- a/tests/json_rpc_e2e.rs
+++ b/tests/json_rpc_e2e.rs
@@ -2726,6 +2726,19 @@ async fn json_rpc_protocol_auth_and_agent_hello_inner() {
post_json_rpc(&rpc_base, 10_000, "openhuman.agent_team_list", json!({})).await;
assert_unknown_method(&retired_team_method, "openhuman.agent_team_list");
+ for (id, method) in [
+ (10_001, "openhuman.workflow_run_list_definitions"),
+ (10_002, "openhuman.workflow_run_list"),
+ (10_003, "openhuman.workflow_run_get"),
+ (10_004, "openhuman.workflow_run_start"),
+ (10_005, "openhuman.workflow_run_stop"),
+ (10_006, "openhuman.workflow_run_resume"),
+ (10_007, "openhuman.agent_graph_topologies"),
+ ] {
+ let retired_method = post_json_rpc(&rpc_base, id, method, json!({})).await;
+ assert_unknown_method(&retired_method, method);
+ }
+
// --- auth: session state (no JWT yet) ---
let state_before = post_json_rpc(&rpc_base, 3, "openhuman.auth_get_state", json!({})).await;
let state_outer = assert_no_jsonrpc_error(&state_before, "get_state");