2026-07-03 10:51:05 +02:00
|
|
|
"""``web.crawl`` capability registration."""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
from app.capabilities.core import BillingUnit, Capability, register_capability
|
|
|
|
|
from app.capabilities.web.crawl.executor import build_crawl_executor
|
|
|
|
|
from app.capabilities.web.crawl.schemas import CrawlInput, CrawlOutput
|
|
|
|
|
|
|
|
|
|
WEB_CRAWL = Capability(
|
|
|
|
|
name="web.crawl",
|
|
|
|
|
description=(
|
2026-07-08 03:38:08 +05:30
|
|
|
"Scrape pages or crawl websites for clean markdown, links, metadata, "
|
|
|
|
|
"and contact signals. Use startUrls and crawl-depth controls."
|
2026-07-03 10:51:05 +02:00
|
|
|
),
|
|
|
|
|
input_schema=CrawlInput,
|
|
|
|
|
output_schema=CrawlOutput,
|
|
|
|
|
executor=build_crawl_executor(),
|
|
|
|
|
billing_unit=BillingUnit.WEB_CRAWL,
|
2026-07-08 03:38:08 +05:30
|
|
|
docs_url="/docs/connectors/native/web-crawl",
|
2026-07-03 10:51:05 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
register_capability(WEB_CRAWL)
|