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
844 B
Python
23 lines
844 B
Python
"""``youtube.comments`` capability registration (billed per comment; see config
|
|
``YOUTUBE_MICROS_PER_COMMENT``)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.capabilities.core import BillingUnit, Capability, register_capability
|
|
from app.capabilities.youtube.comments.executor import build_comments_executor
|
|
from app.capabilities.youtube.comments.schemas import CommentsInput, CommentsOutput
|
|
|
|
YOUTUBE_COMMENTS = Capability(
|
|
name="youtube.comments",
|
|
description=(
|
|
"Fetch public YouTube comments and replies with authors, text, likes, "
|
|
"and timestamps. Use video URLs."
|
|
),
|
|
input_schema=CommentsInput,
|
|
output_schema=CommentsOutput,
|
|
executor=build_comments_executor(),
|
|
billing_unit=BillingUnit.YOUTUBE_COMMENT,
|
|
docs_url="/docs/connectors/native/youtube",
|
|
)
|
|
|
|
register_capability(YOUTUBE_COMMENTS)
|