mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
- Introduced a `docs_url` field to the Google Maps reviews, scrape, YouTube comments, YouTube scrape, and web crawl capabilities for improved documentation access. - Simplified descriptions for each capability to enhance clarity and user understanding.
23 lines
861 B
Python
23 lines
861 B
Python
"""``google_search.scrape`` capability registration (billed per SERP page; see
|
|
config ``GOOGLE_SEARCH_MICROS_PER_SERP``)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.capabilities.core import BillingUnit, Capability, register_capability
|
|
from app.capabilities.google_search.scrape.executor import build_scrape_executor
|
|
from app.capabilities.google_search.scrape.schemas import ScrapeInput, ScrapeOutput
|
|
|
|
GOOGLE_SEARCH_SCRAPE = Capability(
|
|
name="google_search.scrape",
|
|
description=(
|
|
"Search Google and return structured SERP results. Use search_queries "
|
|
"or Google Search URLs."
|
|
),
|
|
input_schema=ScrapeInput,
|
|
output_schema=ScrapeOutput,
|
|
executor=build_scrape_executor(),
|
|
billing_unit=BillingUnit.GOOGLE_SEARCH_SERP,
|
|
docs_url="/docs/connectors/native/google-search",
|
|
)
|
|
|
|
register_capability(GOOGLE_SEARCH_SCRAPE)
|