core-agent-ide/codex-rs/utils
Ahmed Ibrahim 3de8790714
Add the utility to truncate by tokens (#6746)
- This PR is to make it on path for truncating by tokens. This path will
be initially used by unified exec and context manager (responsible for
MCP calls mainly).
- We are exposing new config `calls_output_max_tokens`
- Use `tokens` as the main budget unit but truncate based on the model
family by Introducing `TruncationPolicy`.
- Introduce `truncate_text` as a router for truncation based on the
mode.

In next PRs:
- remove truncate_with_line_bytes_budget
- Add the ability to the model to override the token budget.
2025-11-18 11:36:23 -08:00
..
cache feat: cache tokenizer (#6609) 2025-11-14 17:05:00 +01:00
git feat: git branch tooling (#6831) 2025-11-18 15:26:09 +00:00
image feat: placeholder for image that can't be decoded to prevent 400 (#6773) 2025-11-17 16:10:53 +00:00
json-to-toml fix: separate codex mcp into codex mcp-server and codex app-server (#4471) 2025-09-30 07:06:18 +00:00
pty Use codex-linux-sandbox in unified exec (#6480) 2025-11-10 17:17:09 -08:00
readiness feat: async ghost commit (#5618) 2025-10-27 10:09:10 +00:00
string chore: refactor tool handling (#4510) 2025-10-03 13:21:06 +01:00
tokenizer Add the utility to truncate by tokens (#6746) 2025-11-18 11:36:23 -08:00