feat(nano): WebSearch as an explicit opt-in conditional tool (PR 15) - #894
Merged
Conversation
Completes capability parity with the pi TB run, which made 6 websearch calls (mteb-leaderboard, video-processing, cobol-modernization) via its TB extension on tasks nano lost. Nano registers clawcodex's WebSearch (with a pi-length doc, ~150 est. tokens) IFF global config nano.websearch is True — seeded by the adapter's --ak websearch=1, or NANO_WEBSEARCH=1 through the runner. Key-presence alone deliberately does NOT register it: TAVILY_API_KEY is forwarded into benchmark containers by default, and a key that happens to exist must not grow nano's surface — the same explicitness bar as the vision config block. The key itself rides the (post-#893, actually-working) env-block seed; a missing key surfaces at call time with the tool's clear 'not configured' error. Tests: opted-in registration with the doc override; absent without the explicit config even though is_enabled defaults True. 65 pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the last capability asymmetry vs the pi TB run (pi made 6 websearch calls on tasks nano lost).
--ak websearch=1/NANO_WEBSEARCH=1seedsnano.websearch; nano then registers WebSearch with a pi-length doc. Key presence alone never grows the surface (same explicitness bar as vision). 65 tests pass.🤖 Generated with Claude Code