mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-14 22:52:15 +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
870 B
Python
23 lines
870 B
Python
"""``google_maps.reviews`` capability registration (billed per review; see
|
|
config ``GOOGLE_MAPS_MICROS_PER_REVIEW``)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.capabilities.core import BillingUnit, Capability, register_capability
|
|
from app.capabilities.google_maps.reviews.executor import build_reviews_executor
|
|
from app.capabilities.google_maps.reviews.schemas import ReviewsInput, ReviewsOutput
|
|
|
|
GOOGLE_MAPS_REVIEWS = Capability(
|
|
name="google_maps.reviews",
|
|
description=(
|
|
"Fetch public Google Maps reviews with authors, ratings, text, and "
|
|
"owner responses. Use urls or place IDs."
|
|
),
|
|
input_schema=ReviewsInput,
|
|
output_schema=ReviewsOutput,
|
|
executor=build_reviews_executor(),
|
|
billing_unit=BillingUnit.GOOGLE_MAPS_REVIEW,
|
|
docs_url="/docs/connectors/native/google-maps",
|
|
)
|
|
|
|
register_capability(GOOGLE_MAPS_REVIEWS)
|