Download plugins/web/perplexity/__init__.py from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/plugins/web/perplexity/__init__.py
- Command line
-
hf download hf://SaylorTwift/hermes-agent/plugins/web/perplexity/__init__.py
-
curl -L -o __init__.py https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/plugins/web/perplexity/__init__.py
514 Bytes
| """Perplexity web search + snippets plugin — bundled, auto-loaded. | |
| Backed by the Perplexity Search API over httpx. Both search and extract are | |
| sync; the dispatcher in :mod:`tools.web_tools` handles the wrap when the | |
| caller is async. | |
| """ | |
| from __future__ import annotations | |
| from plugins.web.perplexity.provider import PerplexityWebSearchProvider | |
| def register(ctx) -> None: | |
| """Register the Perplexity provider with the plugin context.""" | |
| ctx.register_web_search_provider(PerplexityWebSearchProvider()) | |