360 Secure SkillHub
360 安全技能中心

Perplexity Agent

该 Skill 通过 Python 脚本调用 Perplexity Agent API 的 pro-search 预设执行实时网络搜索,将用户查询作为输入,返回带引用的答案及所用模型信息;需要在环境中配置 PERPLEXITY_API_KEY,属于单次调用式检索工具。

davidsteelerose
davidsteelerose
热度 61.16
最近更新 2026-05-11 17:32:16
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add perplexity-agent
Metadata
name
perplexity-agent
description
Search the web using the Perplexity Agent API. Provides real-time information, news, and grounded answers with citations. Use when the user asks for: (1) Current events or news, (2) Information retrieval from the web, (3) Real-time data search, (4) In-depth research using web results.

Perplexity Agent Search

Use the Perplexity Agent API to perform real-time web searches and get grounded answers.

Workflow

To perform a web search:

  1. Identify the user's research or search query.
  2. Execute the scripts/search.py script with the query.
  3. Present the answer from the JSON response to the user.

Example

To search for "latest AI developments": python3 scripts/search.py "What are the latest developments in AI?"

Important

  • Requires PERPLEXITY_API_KEY to be set in the environment.
  • Uses the pro-search preset for high-quality, researched results.
  • Returns a JSON object with success, answer, and the model used.