Skip to content

perf(tools): stop advertising the question tool's legacy fields - #469

Merged
mrnasil merged 1 commit into
mainfrom
perf/question-schema-legacy
Nov 25, 2026
Merged

mrnasil merged 1 commit into
mainfrom
perf/question-schema-legacy

Conversation

@mrnasil

@mrnasil mrnasil commented Nov 25, 2026

Copy link
Copy Markdown
Member

The question tool schema advertised the legacy single-question form (top-level question / choices / multi_select / important) and a legacy per-item choices array beside the preferred questions[].options. Every request carried them.

  • Removed from the schema only. Parsing is unchanged: the legacy-shape tests (choices, top-level question, important) still pass, so a model that sends the old shape keeps working.
  • No required was added, so a strict-schema provider still accepts the old shape.
  • Per-question important and multi_select stay: they are current fields.

question parameters: 360 → 230 tokens per request (o200k).

docs/tools/catalog.json / question.md: only the question entry changed. A plain build drops the feature-gated ast_* tools when regenerating, so I edited that entry and ran gen_tool_docs.py; --check passes and so does committed_tool_catalog_matches_binary.

Checks: cargo test -p whycodes-tools --lib agent_tools (71), fmt, clippy (tools), ratchets.

🤖 Generated with Claude Code

The question schema listed the legacy single-question form (top-level
question / choices / multi_select / important) and a legacy per-item
choices array next to the preferred questions[].options shape. Every
request paid for them. They are still parsed, so a model that sends the
old shape keeps working; they are just no longer advertised.

question parameters: 360 -> 230 tokens per request (o200k).
docs/tools catalog and page updated for the question entry only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mrnasil
mrnasil merged commit f99e01c into main Nov 25, 2026
7 checks passed
@mrnasil
mrnasil deleted the perf/question-schema-legacy branch November 25, 2026 01:59
@mrnasil mrnasil mentioned this pull request Nov 26, 2026
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