Skip to content

Conversation

@cantonioupao
Copy link

Summary

Enhanced Brave Search integration with multiple search types, AI summarization, improved error handling, and better code organization while maintaining backward compatibility. Integrated the actively maintained Python Brave Search client with support for summarization, local search, image search, and advanced filtering options.

Solves issue number: #4399

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement
  • Model update
  • Other:

Checklist

  • Code complies with style guidelines
  • Ran format/validation scripts (./scripts/format.sh and ./scripts/validate.sh)
  • Self-review completed
  • Documentation updated (comments, docstrings)
  • Examples and guides: Relevant cookbook examples have been included or updated (if applicable)
  • Tested in clean environment
  • Tests added/updated (if applicable)

Additional Notes

Key additions:

  • Integrated actively maintained Python Brave Search client library
  • AI-powered search summarization (brave_search_with_summary) for concise result summaries
  • Local/POI search for businesses and places with location-based queries
  • Dedicated image search with privacy protection and filtering
  • Extra snippets support for richer search results
  • Spellcheck integration for query suggestions
  • Unified result extraction (web, news, videos)

Code improvements:

  • Refactored with _get_params() and _extract_results() helper methods for cleaner code
  • Enhanced error handling across all search methods
  • Comprehensive inline documentation and docstrings
  • Maintains full backward compatibility with existing implementations

- Add AI-powered summarization (brave_search_with_summary)
- Add local/POI search for businesses and places
- Add dedicated image search with privacy protection
- Add support for extra snippets and spellcheck
- Improve error handling across all search methods
- Refactor with _get_params() and _extract_results() helpers
- Extract all result types (web, news, videos) in unified search
- Maintain backward compatibility with existing code
- Add comprehensive documentation and inline comments
- Use brave-search-python-client instead of brave-search
- Convert methods to async/await
- Use Pydantic request models (WebSearchRequest, NewsSearchRequest, etc.)
- Add new brave search client features such as the summarizer, local search endpoint, dedicated image search endpoint etc.
@cantonioupao cantonioupao requested a review from a team as a code owner October 23, 2025 07:31
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