Skip to content

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

feat(agent): add graph harness module

Steven Enamakel7ba5d866506e
diff --git a/crates/openhuman-core/src/agent/harness/graph.rs b/crates/openhuman-core/src/agent/harness/graph.rs
index 75e4898587..890f62dadd 100644
--- a/crates/openhuman-core/src/agent/harness/graph.rs
+++ b/crates/openhuman-core/src/agent/harness/graph.rs
@@ -142,7 +142,7 @@ pub(crate) async fn run_channel_turn_via_graph(
);
let turn_origin = origin.clone();
let mut run_context =
- crate::agent::tinyagents::host::OpenHumanRunContext::new().with_core(dispatch.into_core());
+ crate::agent::tinyagents::host::OpenHumanRunContext::new().with_core(dispatch.core().cloned());
run_context.origin = origin;
run_context.approval = approval;
run_context.memory_identity = Some(memory_identity);
@@ -192,7 +192,7 @@ pub(crate) async fn run_channel_turn_via_graph(
defer_turn_completed_to_caller: false,
}
.run();
- let outcome = match (turn_origin, crate::core::runtime::CoreContext::current()) {
+ let outcome = match (turn_origin, dispatch.into_core()) {
(Some(origin), Some(context)) => {
crate::core::runtime::CoreContext::scope_with_turn_origin(
context,