__init__.py 514 B

123456789101112131415
  1. """Perplexity web search + snippets plugin — bundled, auto-loaded.
  2. Backed by the Perplexity Search API over httpx. Both search and extract are
  3. sync; the dispatcher in :mod:`tools.web_tools` handles the wrap when the
  4. caller is async.
  5. """
  6. from __future__ import annotations
  7. from plugins.web.perplexity.provider import PerplexityWebSearchProvider
  8. def register(ctx) -> None:
  9. """Register the Perplexity provider with the plugin context."""
  10. ctx.register_web_search_provider(PerplexityWebSearchProvider())