Skip to content

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

test(embed): cover http_request, run_workflow and delegate_to in host capability profile

Steven Enamakel7e16995f1ce8
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index 8f1a4253c4..0fb607ccea 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -80,6 +80,9 @@ impl Respond for CallTools {
"delegate",
"curl",
"install_workflow_from_url",
+ "http_request",
+ "run_workflow",
+ "delegate_to",
];
completion["choices"][0]["message"]["tool_calls"] = json!(names.iter().enumerate().map(|(i, name)| json!({"id":format!("call_{i}"),"type":"function","function":{"name":name,"arguments":"{}"}})).collect::<Vec<_>>());
let body: Value = serde_json::from_slice(&request.body).unwrap();
@@ -135,6 +138,9 @@ async fn scenario() {
"delegate",
"curl",
"install_workflow_from_url",
+ "http_request",
+ "run_workflow",
+ "delegate_to",
]
.into_iter()
.map(|name| {
@@ -153,6 +159,9 @@ async fn scenario() {
"delegate".into(),
"curl".into(),
"install_workflow_from_url".into(),
+ "http_request".into(),
+ "run_workflow".into(),
+ "delegate_to".into(),
]))
.can_use_tool(|_| Box::pin(async { ToolHookDecision::Proceed }))
.channel_permissions([