Dingpenghui-good/dsh-web-search-serper ↗★ 0
@dingpenghui/dsh-web-search-serper
Serper.dev-backed web search provider for DSH (DeepSeek Harness) web capability seam
AI Analysis
核心用途是为 DSH 的联网搜索功能提供稳定、高效的 Google 搜索数据源。适合需要高精度网页检索支持的 Agent 任务。需要配置 Serper API 密钥。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗Configuration Options
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey | string | No | $SERPER_API_KEY | Serper API key |
baseURL | string | No | https://google.serper.dev | API endpoint base |
gl | string | No | - | Country code (e.g., us, cn, jp) |
cr | string | No | - | Region code (e.g., cr=us) |
numResults | number | No | 10 | Default result count |
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: '...' },
// ...
// ]