Skip to content

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

test(flow): cover bus-backed builtin prompt ownership

Steven Enamakeld283b7a1b774
diff --git a/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs b/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
index 9782308583..29398a9a29 100644
--- a/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
@@ -1,4 +1,5 @@
use super::*;
+use tinyagents_definition::DefinitionSource;
#[test]
fn only_dynamic_builtin_flow_definitions_use_the_bus_prompt() {
@@ -12,6 +13,9 @@ fn only_dynamic_builtin_flow_definitions_use_the_bus_prompt() {
let mut definition = registry.get(id).expect("builtin flow agent").clone();
definition.source = DefinitionSource::CustomRegistry;
+ assert!(is_bus_backed_builtin(&definition));
+
+ definition.extensions.tinyflows_prompt_owner = None;
assert!(!is_bus_backed_builtin(&definition));
}
}
diff --git a/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs
index a903c16ccb..f8a85a1cf2 100644
--- a/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs
@@ -1,5 +1,6 @@
-use super::build;
-use crate::agent::prompts::{PromptContext, ToolCallFormat};
+use crate::agent::prompts::PromptContext;
+use crate::agent::registry::agents::flow_discovery::prompt::build;
+use tinytools_agent::dialect::ToolCallFormat;
fn ctx<'a>(
workspace: &'a std::path::Path,