chore: implement Mul for TruncationPolicy (#10272)

Codex thought this was a good idea while working on
https://github.com/openai/codex/pull/10192.
This commit is contained in:
Michael Bolin
2026-01-30 15:50:20 -08:00
committed by GitHub
parent 8d142fd63d
commit 10ea117ee1
2 changed files with 16 additions and 13 deletions

View File

@@ -266,7 +266,7 @@ impl ContextManager {
}
fn process_item(&self, item: &ResponseItem, policy: TruncationPolicy) -> ResponseItem {
let policy_with_serialization_budget = policy.mul(1.2);
let policy_with_serialization_budget = policy * 1.2;
match item {
ResponseItem::FunctionCallOutput { call_id, output } => {
let truncated =