Skip to content

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

feat(tokenjuice): add explicit read_intent field to compress hint

Steven Enamakel21f8e9a879aa
diff --git a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
index 86a6f23508..47fe95548e 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs
@@ -306,6 +306,12 @@ fn compress_hint_from_params(params: &Map<String, Value>) -> Result<ContentHint,
extension: str_param(params, "extension"),
query: str_param(params, "query"),
explicit,
+ // `Exact` is the contract default and the behavior this endpoint has
+ // always had: a caller compacting arbitrary content has not asked for
+ // source to be reduced to a signature stub. Spelled out rather than
+ // `..Default::default()` so the next field added to the wire contract
+ // fails the build here instead of being absorbed silently.
+ read_intent: tinyjuice_bus::types::ReadIntent::Exact,
})
}