[tools] Consolidate _ADMIN_TOOLS constant (#681) #815

Closed
sleepy wants to merge 0 commits from fix/admin-tools-constant-681 into main
Owner

Fixes #681. Consolidate the two duplicate _ADMIN_TOOLS definitions into a single canonical ADMIN_TOOLS frozenset in src/tools/_shared.py.

Fixes #681. Consolidate the two duplicate _ADMIN_TOOLS definitions into a single canonical ADMIN_TOOLS frozenset in src/tools/_shared.py.
Both agent/tool_selection.py and tool_execution.py defined _ADMIN_TOOLS
with different tool lists, causing confusion about which tools are
admin-gated.

Move the canonical definition to src/tools/_shared.py as ADMIN_TOOLS
(union of both sets: 19 tools). Both files now import from the single
source.

Fixes #681
sleepy closed this pull request 2026-06-04 11:42:09 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.