Skip to content

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

refactor(openhuman-embed): tidy turn dispatch call and capture agent outcome

Steven Enamakel1a52a14d1b18
diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rs
index 7ad98699a6..1f49a38c52 100644
--- a/crates/openhuman-embed/src/turn.rs
+++ b/crates/openhuman-embed/src/turn.rs
@@ -539,13 +539,7 @@ impl Turn {
),
untrusted_input: self.untrusted_input,
};
- let dispatch = dispatch(
- self.target,
- self.request,
- self.seed.take(),
- &usage,
- options,
- );
+ let dispatch = dispatch(self.target, self.request, self.seed.take(), &usage, options);
let reply = match (self.origin, self.progress) {
(Some(origin), Some(sink)) => {
@@ -746,7 +740,7 @@ async fn dispatch(
untrusted_input: options.untrusted_input,
shape: Some(&options.shape),
};
- agent_chat_for(
+ let outcome = agent_chat_for(
&mut config,
target,
&request.message,