Skip to content

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

refactor(tokenjuice): make tool schema fields optional

Steven Enamakel51b4c1196b1f
diff --git a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
index 866cf0f97f..790803d355 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
@@ -268,7 +268,7 @@ pub fn schemas(function: &str) -> ControllerSchema {
/// no context is on, since the set only narrows.
fn gate() -> Result<(), String> {
let on = crate::core::runtime::context::CoreContext::current()
- .map_or(true, |ctx| ctx.components().juice);
+ .is_none_or(|ctx| ctx.components().juice);
if on {
Ok(())
} else {