Dingpenghui-good/dsh-web-search-serper0

@dingpenghui/dsh-web-search-serper

Serper.dev-backed web search provider for DSH (DeepSeek Harness) web capability seam

AI 분석

核心用途是为 DSH 的联网搜索功能提供稳定、高效的 Google 搜索数据源。适合需要高精度网页检索支持的 Agent 任务。需要配置 Serper API 密钥。

패키지
@dingpenghui/dsh-web-search-serper
버전
0.3.0
라이선스
MIT
최근 업데이트
2026. 9. 6.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

Configuration Options

FieldTypeRequiredDefaultDescription
apiKeystringNo$SERPER_API_KEYSerper API key
baseURLstringNohttps://google.serper.devAPI endpoint base
glstringNo-Country code (e.g., us, cn, jp)
crstringNo-Region code (e.g., cr=us)
numResultsnumberNo10Default 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: '...' },
//   ...
// ]