Skip to content

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

refactor(core): simplify upsert parsing logic

Steven Enamakel04cfe5c525c0
diff --git a/crates/openhuman-core/src/threads/schemas/handlers.rs b/crates/openhuman-core/src/threads/schemas/handlers.rs
index d6991145df..cb8fc4f24e 100644
--- a/crates/openhuman-core/src/threads/schemas/handlers.rs
+++ b/crates/openhuman-core/src/threads/schemas/handlers.rs
@@ -29,8 +29,7 @@ pub(super) fn handle_upsert(ctx: DispatchCtx, params: Map<String, Value>) -> Con
pub(super) fn parse_upsert(
params: Map<String, Value>,
) -> Result<UpsertConversationThreadRequest, String> {
- let _ = params;
- Err("mutated parser rejects valid example".to_owned())
+ parse(params)
}
pub(super) fn run_upsert(ctx: DispatchCtx, p: UpsertConversationThreadRequest) -> ControllerFuture {