Skip to content

adds additional brave-search-api params#4321

Merged
lorenzejay merged 1 commit intocrewAIInc:mainfrom
jonathansampson:sampson-extended-brave-search-integration
Feb 2, 2026
Merged

adds additional brave-search-api params#4321
lorenzejay merged 1 commit intocrewAIInc:mainfrom
jonathansampson:sampson-extended-brave-search-integration

Conversation

@jonathansampson
Copy link
Contributor

@jonathansampson jonathansampson commented Jan 31, 2026

Introduces support for additional Brave Search API web-search parameters.


Note

Medium Risk
Medium risk because BraveSearchTool now returns JSON-encoded structured results instead of the previous human-readable text, which may break downstream consumers expecting the old format. It also widens request parameter surface area and changes default query argument naming (while keeping input backward compatibility).

Overview
BraveSearchTool now supports many additional Brave web-search parameters (e.g., country, search_language, count/offset, safesearch, freshness, and several boolean flags), with Pydantic validation for constrained fields like freshness and safesearch.

The tool’s output format changes to a JSON list of result objects (with url, title, optional description, optional snippets) and requests are forced to result_filter=web; tests are updated to call query and to validate the JSON structure.

Written by Cursor Bugbot for commit 0e6119f. This will update automatically on new commits. Configure here.

@jonathansampson jonathansampson force-pushed the sampson-extended-brave-search-integration branch from bec4f2d to 26dff2a Compare January 31, 2026 19:18
@jonathansampson jonathansampson force-pushed the sampson-extended-brave-search-integration branch 3 times, most recently from 1e0be93 to a6eb14a Compare January 31, 2026 22:29
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@jonathansampson jonathansampson force-pushed the sampson-extended-brave-search-integration branch 3 times, most recently from 37884eb to 5933519 Compare February 1, 2026 04:46
Introduces support for additional Brave Search API web-search parameters.
@jonathansampson jonathansampson force-pushed the sampson-extended-brave-search-integration branch from cd72cee to 0e6119f Compare February 2, 2026 17:59
Copy link
Collaborator

@lorenzejay lorenzejay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely ! tested and it works

@lorenzejay lorenzejay merged commit 8c64362 into crewAIInc:main Feb 2, 2026
42 of 43 checks passed
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.

2 participants