@framers/agentos-ext-deep-research

中文文档
0.2.6发布于 2026/11/11Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 2万

Deep research extension for AgentOS — multi-source investigation, academic search, content scraping, aggregate search, and trend discovery.

原始使用文档
文档目录12 节
  1. Installation
  2. Usage
  3. Configuration
  4. Tools
  5. researchInvestigate
  6. researchAcademic
  7. researchScrape
  8. researchAggregate
  9. researchTrending
  10. deep_research
  11. Notes
  12. License

Deep research

This pack gives an agent investigation, academic search, scraping, aggregate search, trend discovery and iterative research tools. It uses axios for search and content APIs, DuckDuckGo HTML search, and OpenAI-compatible chat completion endpoints for query decomposition and report synthesis.

Installation

npm install @framers/agentos-ext-deep-research

Peer dependency: @framers/agentos with range >=0.10.40.

Usage

import { AgentOS } from '@framers/agentos';

const agentos = await AgentOS.create({
  extensionManifest: {
    packs: [
      {
        package: '@framers/agentos-ext-deep-research',
        options: {
          serperApiKey: process.env.SERPER_API_KEY,
          braveApiKey: process.env.BRAVE_API_KEY,
          serpApiKey: process.env.SERPAPI_API_KEY,
          openaiApiKey: process.env.OPENAI_API_KEY,
          openrouterApiKey: process.env.OPENROUTER_API_KEY,
        },
      },
    ],
  },
});

Configuration

OptionSecret idEnvironment variableRequiredDefault
serperApiKeyserper.apiKeySERPER_API_KEYyes, manifestEmpty string
braveApiKeybrave.apiKeyBRAVE_API_KEYnoUnset
serpApiKeyserpapi.apiKeySERPAPI_API_KEYnoUnset
openaiApiKeyopenai.apiKeyOPENAI_API_KEY, then OPENROUTER_API_KEY in the shared key chainnoShared key chain, then empty string
openrouterApiKeyopenrouter.apiKeyOPENAI_API_KEY, then OPENROUTER_API_KEY in the shared key chainnoShared key chain, then empty string
primaryProviderNoneNonenoopenai
smallModelNoneNonenogpt-4o-mini
synthesisModelNoneNonenogpt-4o
secretsSecret mapNonenoContext secrets, then an empty object
NoneNoneDEBUGnoUnset

Search keys resolve from options, then the selected secret map, then the environment. options.secrets replaces context secrets. The LLM key resolves from openaiApiKey, openai.apiKey, openrouterApiKey, openrouter.apiKey, OPENAI_API_KEY, then OPENROUTER_API_KEY.

primaryProvider selects openai, openrouter or ollama. An OpenRouter option or environment key also selects the OpenRouter endpoint when openaiApiKey is absent. The Ollama endpoint is local. A nonempty DEBUG enables console progress logging unless a per-call progress callback takes precedence.

Tools

ToolWhat it does
researchInvestigateInvestigates a topic across web, academic, social and news sources with cross-references.
researchAcademicSearches academic papers on arXiv, Google Scholar or Semantic Scholar.
researchScrapeExtracts content from YouTube, Wikipedia, blogs and generic pages.
researchAggregateSearches Serper, Brave and SerpAPI and returns results grouped by engine.
researchTrendingRetrieves trends from Twitter, Reddit, YouTube or Hacker News.
deep_researchDecomposes a query, searches and extracts sources, analyzes gaps and synthesizes a report with citations.

researchInvestigate

ParameterTypeRequiredDescription
querystringyesThe research query or topic to investigate
sourcesarray of strings, enum: web, academic, social, newsnoSources to search across (default: web, academic, news)
maxResultsnumbernoMaximum results per source (default 10)

researchAcademic

ParameterTypeRequiredDescription
querystringyesAcademic search query (keywords, paper title, author name)
sourcestring, enum: arxiv, scholar, semanticnoAcademic source to search (default: arxiv)
maxResultsnumbernoMaximum number of papers to return (default 10)

researchScrape

ParameterTypeRequiredDescription
urlstringyesURL to scrape content from
typestring, enum: youtube, wikipedia, blog, genericnoContent type for platform-specific extraction (default: generic)

researchAggregate

ParameterTypeRequiredDescription
querystringyesSearch query
enginesarray of strings, enum: serper, brave, serpapinoSearch engines to query (default: serper)
maxResultsnumbernoMaximum results per engine (default 10)

researchTrending

ParameterTypeRequiredDescription
platformstring, enum: twitter, reddit, youtube, hackernewsnoPlatform to discover trends from (default: hackernews)
categorystringnoCategory or subreddit to filter trends (optional)

deep_research

ParameterTypeRequiredDescription
querystringyesResearch question or topic to investigate
depthstring, enum: quick, moderate, deep; default: moderatenoResearch depth: quick (30000 ms, 10 searches), moderate (120000 ms, 20 searches), deep (540000 ms, 50 searches)
maxIterationsinteger, minimum 1, maximum 10noMaximum search-extract-analyze iterations
sourcesarray of strings, enum: web, academic, news, socialnoSource types to search
focusAreasarray of stringsnoSpecific aspects to focus on

Notes

The manifest requires serper.apiKey, but the factory does not reject a missing key. Without it, deep_research uses DuckDuckGo HTML search. With it, the engine uses aggregate search; empty provider results do not trigger DuckDuckGo. Brave and SerpAPI are skipped when their keys are absent. Investigation and aggregate search skip failed sources or engines.

Service-backed tools require activation. deep_research declares capability:web_search and validates that query has at least 3 characters. Its sources input is passed to the search method but does not filter searches. Without an LLM key, the engine searches the original query; when it collects content and has LLM budget remaining, its no-op synthesis returns an empty summary. Configured LLM calls send research prompts and source evidence to the selected endpoint.

YouTube scraping returns oEmbed metadata, not transcripts. Wikipedia scraping uses the English summary endpoint. Investigation cross-references match shared title words. Trend category affects Reddit; the other providers ignore it.

Service HTTP requests use a 30000 ms timeout; generic scraping and engine page extraction use 15000 ms. Generic scraping truncates text to 10000 characters. The engine tracks search, extraction, LLM and elapsed-time budgets, with default iteration limits of 1 for quick, 3 for moderate and 6 for deep. These checks do not cancel an in-flight search or LLM request.

Firecrawl support exists in the engine, but the pack factory does not pass Firecrawl settings to it.

License

Apache-2.0

版本与发布记录

@framers/agentos-ext-deep-research 共发布 8 个版本,首次发布于 2026/05/02;过去 12 个月发布了 8 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.6latest2026/11/114 天前
0.2.52026/11/0115 天前
0.2.42026/10/2125 天前
0.2.32026/10/121 个月前
0.2.22026/10/111 个月前
0.2.12026/10/081 个月前

关于 @framers/agentos-ext-deep-research 的常见问题

@framers/agentos-ext-deep-research 是什么?

Deep research extension for AgentOS — multi-source investigation, academic search, content scraping, aggregate search, and trend discovery.

如何安装 @framers/agentos-ext-deep-research?

在项目目录运行 npm install @framers/agentos-ext-deep-research,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@framers/agentos(>=0.10.40)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@framers/agentos-ext-deep-research 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@framers/agentos-ext-deep-research 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@framers/agentos-ext-deep-research 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@framers/agentos-ext-deep-research 可以商用吗?

@framers/agentos-ext-deep-research 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@framers/agentos-ext-deep-research 的下载量有多少?

根据 npm 官方下载统计,@framers/agentos-ext-deep-research 在 2026/10/16 – 2026/11/14 这 30 天内被下载 20,407 次,日均约 680 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@framers/agentos-ext-deep-research 还在维护吗?

最新版本 0.2.6 发布于 2026/11/11(4 天前);至今共发布 8 个版本,其中过去 12 个月发布了 8 个;首次发布于 2026/05/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。