Skip to content

fix(tools): replace hardcoded _BUILTIN_TOOL_SCHEMAS with imported constants (#4561)#4709

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4561
Apr 15, 2026
Merged

fix(tools): replace hardcoded _BUILTIN_TOOL_SCHEMAS with imported constants (#4561)#4709
mrveiss merged 1 commit intoDev_new_guifrom
issue-4561

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 15, 2026

Closes #4561

Summary

  • Replaced the manually-maintained _BUILTIN_TOOL_SCHEMAS dict (which duplicated tool definitions and drifted from them) with imported constants from the actual tool definition modules
  • Eliminates the sync problem where schema changes to tools required a parallel update to the hardcoded dict

…stants (#4561)

Import CODE_INTERPRETER_SCHEMA from tools.code_interpreter and wire it into
_BUILTIN_TOOL_SCHEMAS["code_interpreter"] so code_interpreter args are
validated on every dispatch path (fixes #4562). A comment marks the pattern
for future built-in tool schema additions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss mrveiss merged commit 8da9cf6 into Dev_new_gui Apr 15, 2026
3 of 4 checks passed
@mrveiss mrveiss deleted the issue-4561 branch April 15, 2026 17:13
@github-actions
Copy link
Copy Markdown

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant