Skip to content

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

feat(subagent): add runner ops for subagent host

Steven Enamakel6cb66ac813d2
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index 57feac3791..4cc4dded52 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -826,13 +826,10 @@ async fn run_typed_mode(
};
let system_prompt = match &definition.system_prompt {
- PromptSource::Dynamic(build) => {
- build(&prompt_ctx).map_err(|e| SubagentRunError::PromptLoad {
- path: format!("<dynamic:{}>", definition.id),
- source: std::io::Error::other(e.to_string()),
- })?
+ // The whole prompt, with no sub-agent sections around it.
+ PromptSource::Dynamic(_) | PromptSource::Verbatim(_) => {
+ load_prompt_source(&definition.system_prompt, &prompt_ctx)?
}
- PromptSource::Verbatim(body) => body.clone(),
PromptSource::Inline(_) | PromptSource::File { .. } => {
let archetype_prompt_body = load_prompt_source(&definition.system_prompt, &prompt_ctx)?;
render_subagent_system_prompt_with_format(