Skip to content

Rename experimental tool_choice to toolChoice - #35

Merged
SamSamskies merged 1 commit into
mainfrom
rename-tool-choice-to-toolChoice
Aug 13, 2026
Merged

Rename experimental tool_choice to toolChoice#35
SamSamskies merged 1 commit into
mainfrom
rename-tool-choice-to-toolChoice

Conversation

@SamSamskies

Copy link
Copy Markdown
Owner

Summary

  • Renames the experimental Bridge API param from snake_case tool_choice to camelCase toolChoice across validation, providers, runTools, inject, and tests.
  • Provider wire formats still send upstream tool_choice where required (OpenAI-compat / Ollama / Anthropic mapping).
  • No compatibility shim for the old key — nothing has shipped using tool_choice yet.

Test plan

  • npm test (validate, run-tools, and provider tool-choice tests)
  • Smoke: experimental request with toolChoice: "auto" / "none" / named function still works in DevTools
  • Smoke: stable window.inference.request still rejects toolChoice as experimental-only

Made with Cursor

Align the page-facing experimental.request / runTools API with camelCase option naming; keep snake_case only on provider wire bodies.

Co-authored-by: Cursor <cursoragent@cursor.com>
@SamSamskies
SamSamskies merged commit 3dae9ef into main Aug 13, 2026
1 check passed
@SamSamskies
SamSamskies deleted the rename-tool-choice-to-toolChoice branch August 13, 2026 22:55
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