Skip to content

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

refactor(core): update invoke signature in BoundRegisteredController

Steven Enamakel00053e3bf089
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index 47812328a7..136ff52091 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -90,7 +90,7 @@ impl BoundRegisteredController {
) -> Self {
let decode =
Arc::new(move |params| parse(params).map(|_| ())) as Arc<dyn Fn(_) -> _ + Send + Sync>;
- let invoke = Arc::new(move |ctx, params| {
+ let invoke = Arc::new(move |ctx: DispatchCtx, params: Map<String, Value>| {
Box::pin(async move {
let gated = gate(ctx.clone()).await?;
run(ctx, gated, parse(params)?).await