Spaces:
Build error
Build error
Download src/core/interface/analyzer_interface.py from 00Boobs00/search-web-MCP-server: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/spaces/00Boobs00/search-web-MCP-server/resolve/main/src/core/interface/analyzer_interface.py
- Command line
-
hf download hf://spaces/00Boobs00/search-web-MCP-server/src/core/interface/analyzer_interface.py
-
curl -L -o analyzer_interface.py https://huggingface.co/spaces/00Boobs00/search-web-MCP-server/resolve/main/src/core/interface/analyzer_interface.py
779 Bytes
| from abc import ABC, abstractmethod | |
| from typing import List | |
| from src.models.scrape_models import ScrapeResult | |
| from src.models.analyzer_models import AnalyzerResult | |
| class AnalyzerInterface(ABC): | |
| def analyze_search_result( | |
| query: str, search_result: List[ScrapeResult] | |
| ) -> AnalyzerResult: | |
| """ | |
| Analyzes the provided search results based on the given query. | |
| Args: | |
| query (str): The search query string. | |
| search_result (List[ScrapeResult]): A list of search results to be analyzed. | |
| Returns: | |
| AnalyzerResult: The result of the analysis. | |
| Raises: | |
| NotImplementedError: If the method is not implemented by a subclass. | |
| """ | |
| raise NotImplementedError | |