mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-08 22:22:17 +02:00
feat(google_search): register scrape capability
This commit is contained in:
parent
fcf1c6e052
commit
b4ad8c5f4c
2 changed files with 29 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
"""``google_search.*`` namespace: platform-native Google Search data verbs."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from app.capabilities.google_search.scrape import definition as _scrape # noqa: F401
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
"""``google_search.scrape`` capability registration (free — see 04-capabilities open item)."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from app.capabilities.core import 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 results. Give it search terms "
|
||||
"(optionally scoped by country/language or to a single site) or full "
|
||||
"Google Search URLs, and it returns SERP items — organic results "
|
||||
"(title, url, description), related queries, people-also-ask, and any "
|
||||
"AI overview. Use max_pages_per_query to page deeper."
|
||||
),
|
||||
input_schema=ScrapeInput,
|
||||
output_schema=ScrapeOutput,
|
||||
executor=build_scrape_executor(),
|
||||
billing_unit=None,
|
||||
)
|
||||
|
||||
register_capability(GOOGLE_SEARCH_SCRAPE)
|
||||
Loading…
Add table
Add a link
Reference in a new issue