Skip to main content

NORMALIZE_TOOLS

Constant NORMALIZE_TOOLS 

Source
pub const NORMALIZE_TOOLS: &'static [&'static str];
Expand description

Tool names T30/TR-4’s candidate rule treats as “terminal/exec” — a result from one of these is eligible for super::ReductionKind::OutputNormalized. Compared against the INVOKING tool call’s function name (see detect_normalize_candidates), the same pattern the A8 read-tool list uses for read-type tools:

  • "bash" — this SDK’s own built-in (tools/builtins.rs’s BashTool::name); B6 must keep this in sync with any built-in tool rename.
  • "shell" — the other shell-tool name this SDK already anticipates for embedder-registered tools (see tools/mod.rs’s shell_sandbox_unenforceable, which checks the identical pair).
  • "exec_command" — Codex’s own native exec tool name, so a Codex log loaded via Session::from_codex (whose function_call/ function_call_output records never carry a ChatMessage::name at all — see detect_normalize_candidates’s doc comment) is covered too.