Skip to content

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

refactor(agent): rename effective_tokenjuice_compression to tokenjuice_for

Steven Enamakel0fdb40c95a47
diff --git a/crates/openhuman-core/src/agent/harness/host_definition.rs b/crates/openhuman-core/src/agent/harness/host_definition.rs
index 9d879e45cf..d2f3d325e8 100644
--- a/crates/openhuman-core/src/agent/harness/host_definition.rs
+++ b/crates/openhuman-core/src/agent/harness/host_definition.rs
@@ -83,10 +83,7 @@ impl Default for AgentExt {
impl AgentExt {
/// Resolve the authored TokenJuice profile to the concrete per-call policy
/// for an agent whose model pin is `model`.
- pub fn effective_tokenjuice_compression(
- &self,
- model: &ModelSpec,
- ) -> AgentTokenjuiceCompression {
+ pub fn tokenjuice_for(&self, model: &ModelSpec) -> AgentTokenjuiceCompression {
match self.tokenjuice_compression {
AgentTokenjuiceCompression::Auto => match model {
ModelSpec::Hint(hint) if hint.trim().eq_ignore_ascii_case("coding") => {