-
refactor: rename colliding ToolExecutionMode to ToolParallelism (core) (#4613)
发布于
2026-07-31 22:58:44 +00:00 core/types.py's ToolExecutionMode (Literal["parallel", "sequential"],
tool-in-ReAct-loop parallelism) shared a name with the unrelated
tools/interactive_shell/shared/execution_policy.py StrEnum
(foreground/background/streaming REPL launch mode), inviting a
contributor to import the wrong one.Rename the core alias to ToolParallelism and convert it to a StrEnum
per the target shape. Zero external importers existed (every
ToolExecutionMode usage found outside core/types.py was already the
shell's StrEnum), so the only other change needed is updating the
lazy re-export key in core/__init__.py's _EXPORT_MODULES. The shell's
ToolExecutionMode is untouched. No string values renamed.Co-authored-by: Anwesh 8139783+muddlebee@users.noreply.github.com
下载附件