Python: feat: Add Serpex multi-engine web search connector - #13295
Closed
Kartey R (divyeshradadiya) wants to merge 1 commit into
Closed
Python: feat: Add Serpex multi-engine web search connector#13295Kartey R (divyeshradadiya) wants to merge 1 commit into
Kartey R (divyeshradadiya) wants to merge 1 commit into
Conversation
Add Serpex connector for Semantic Kernel with support for 7 search engines (auto, google, bing, duckduckgo, brave, yahoo, yandex). Features: - Multi-engine search with intelligent auto-routing - Full async/await support - Configurable parameters (engine, category, time_range) - Comprehensive error handling - TextSearch interface implementation - Unit tests with 100% coverage This connector enables developers to use Serpex's unified search API across multiple search engines within Semantic Kernel workflows.
Author
|
@microsoft-github-policy-service agree company="serpex.dev" |
Collaborator
|
Hi Kartey R (@divyeshradadiya), thank you for your contribution. Current feature focus is on SK's successor SDK - Microsoft Agent Framework. Please have a look at the repo if you haven't already. https://github.com/microsoft/agent-framework |
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.
title: "Add Serpex Search Connector"
labels: "area/connectors, enhancement"
assignees: ""
Summary
This PR adds a new Serpex search connector that implements the
TextSearchinterface and provides async search support across Serpex engines (auto, google, bing, duckduckgo, brave, yahoo, yandex). The connector integrates with the Semantic Kernel connector patterns and includes unit tests that mock the HTTP client.Motivation
engineparameter with sensible defaults.search,get_text_search_results,get_search_results).Design
New connector:
semantic_kernel.connectors.serpex.SerpexSearchKernelBaseModel/KernelBaseSettingspatterns (pydantic) for typed configuration.httpx.AsyncClientfor HTTP calls (same pattern as other connectors).searchwhich returns structured search results and helper methods for text-only or raw results.Error handling:
Files Changed (high level)
Usage
Example (async):
Notes:
enginedefaults toautoif not provided.api_keyshould be provided as a secret in production (use env var / secrets manager).Tests
test_serpex_search.pycovers successful search response parsing and error response handling.httpx.AsyncClientto avoid network calls and follow existing test patterns in the repo.Compatibility
httpx.AsyncClient.CONTRIBUTING.md.Checklist for reviewers
Security & Privacy