Skip to content

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

refactor(triage): update agent dispatch context creation

Steven Enamakel1ceb585e917c
diff --git a/crates/openhuman-core/src/triage/escalation.rs b/crates/openhuman-core/src/triage/escalation.rs
index d97e36a2d5..d7f6dfa969 100644
--- a/crates/openhuman-core/src/triage/escalation.rs
+++ b/crates/openhuman-core/src/triage/escalation.rs
@@ -270,11 +270,13 @@ async fn dispatch_target_agent(
attachments: &[],
},
prompt,
- // SUBAGENT_OPTIONS_REMOVED
- run_context: crate::agent::tinyagents::host::OpenHumanRunContext::new()
- .with_core(ctx.core().cloned())
- .with_host_env(&parent_ctx.host_env)
- .with_parent(parent_ctx),
+ model_override,
+ Some(definition.temperature),
+ None,
+ None,
+ None,
+ crate::inference::host_runtime::ops::AgentChatEnv {
+ host: parent_ctx.host_env.clone(),
..Default::default()
},
)