Dingpenghui-good/dsh-web-search-serper ↗★ 1

@dingpenghui/dsh-web-search-serper

Serper.dev-backed web search provider for DSH (DeepSeek Harness) web capability seam 适合需要为智能体接入谷歌搜索数据以获取实时信息的任务。

パッケージ
@dingpenghui/dsh-web-search-serper
互換性
未検証
Cordis ピア範囲
^4.0.1
バージョン
0.3.1
ライセンス
MIT
最終更新
2026/09/09

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration Options

FieldTypeRequiredDefaultDescription
apiKeystringNo$SERPER_API_KEY, then credential reference SERPER_API_KEYSerper API key
baseURLstringNohttps://google.serper.devAPI endpoint base
glstringNo-Country code (e.g., us, cn, jp)
crstringNo-Region code (e.g., us; sent as the cr parameter)
numResultsnumberNoomitted (Serper defaults to 10)Default result count, capped at 100

Usage Examples

Basic Search

import { apply } from '@dingpenghui/dsh-web-search-serper'

// Use in a Cordis plugin
apply(ctx, {
  apiKey: 'your-api-key',
  gl: 'cn',
})

Search via ctx.web

const result = await ctx.web.search({
  query: 'latest AI developments 2026',
  maxResults: 5,
})

console.log(result.sources)
// [
//   { url: '...', title: '...', snippet: '...' },
//   ...
// ]