Skip to content

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

refactor(agent): tidy flow archetype imports and test source variant

Steven Enamakele65b087f5f0d
diff --git a/crates/openhuman-core/src/agent/prompts/flow_archetype.rs b/crates/openhuman-core/src/agent/prompts/flow_archetype.rs
index ac0089db80..cf21b851aa 100644
--- a/crates/openhuman-core/src/agent/prompts/flow_archetype.rs
+++ b/crates/openhuman-core/src/agent/prompts/flow_archetype.rs
@@ -1,12 +1,9 @@
//! Scoped TinyFlows archetype prompt loading for the two flow builtins.
use anyhow::{anyhow, ensure, Result};
-use tinyagents_definition::{AgentDefinition as GenericAgentDefinition, DefinitionSource, PromptSource};
+use tinyagents_definition::{DefinitionSource, PromptSource};
-use crate::{
- config::Config,
- agent::harness::host_definition::AgentDefinition,
-};
+use crate::{agent::harness::host_definition::AgentDefinition, config::Config};
/// Whether `definition` is one of the bus-backed builtin flow prompt owners.
///
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 79aa5c6ec4..4717ddee85 100644
--- a/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
@@ -11,7 +11,7 @@ fn only_dynamic_builtin_flow_definitions_use_the_bus_prompt() {
assert!(!is_bus_backed_builtin(&definition));
let mut definition = registry.get(id).expect("builtin flow agent").clone();
- definition.source = DefinitionSource::Workspace;
+ definition.source = DefinitionSource::CustomRegistry;
assert!(!is_bus_backed_builtin(&definition));
}
}