Repository navigation
Add opt-in Parallel documentation search to WebToolProvider - #109
Open
georgeatparallel wants to merge 1 commit into
Open
georgeatparallel wants to merge 1 commit into
georgeatparallel wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
For attended documentation lookups, a host may approve one literal public search phrase before the agent runs. WebToolProvider currently exposes a model-authored Brave query, and generic MCP registration forwards the model's tool arguments, so preserving that approval requires a custom wrapper.
This adds explicit
search_provider="parallel"and a requiredparallel_public_queryto WebToolProvider. The model receives an argument-freeweb_search; extra arguments fail validation before dispatch. One provider instance permits one attempt, including failures and cancellation, and sends the exact approved phrase to Unified MCP with a fixed documentation objective. Original source URLs and excerpts return to the next agent turn. Brave remains the default, and default tools and Slack registration retain their existing behavior. The documentation explains host approval, public-only input, and one attended operation per provider. The MCP extra minimum becomes the already locked and tested 1.23.3, which supplies the transport hook and structured results used here.Validation at commit
b564e25495edd40e902a7d9109037df402c59d80:Python 3.13 tomllib TOMLDecodeError, observedStirrup/0.2.1 (Parallel MCP)on actual HTTP requests, and carried the original Python 3.13 documentation URL into both the tool response and cited final answer. Retrieval was live; the model was a local fixture.Setup: Parallel MCP setup.
This is a Parallel DevRel contribution prepared with AI assistance and independently reviewed by an automated reviewer.