Skip to content

Releases: superagents-lab/search1api-ai-sdk

v0.3.0

Choose a tag to compare

@fatwang2 fatwang2 released this 12 Oct 08:30
79f6f1a

Align search/news output types with the nested metadata API correction by depending on @search1api/client ^0.4.0. Engine-specific fields live in optional result metadata; common fields and optional publication dates remain at the result top level. Tool execution preserves the API response.

Verified against AI SDK 5, 6 and 7 with Zod 3 and 4, including tool calls, streaming, type checks, and ESM/CommonJS packaging.

v0.2.0

Choose a tag to compare

@fatwang2 fatwang2 released this 10 Oct 16:43
19ae914

新工具:ask

对应 POST /ask:模型传入自然语言问题,Search1API 选最多五个引擎和时间窗口,返回最多 10 条按相关度排序的结果。和 MCP 0.7.0 一样,ask 默认包含在 search1apiTools() 里;也可以用 search1apiAsk() 单独创建。

每次 ask 消耗 5 credits(search 是 1 credit)。想保持原来的三个工具:

search1apiTools({ only: ['search', 'news', 'crawl'] })

search / news

  • search 引擎新增 bingcn、yandex、grokipedia,新增 page 参数(只有 bing、bingcn、baidu、grokipedia 支持分页)
  • search 和 news 的 time_range 支持 week
  • 依赖升到 @search1api/client 0.3.0,结果类型带上 published_date 和 GitHub、Hacker News 字段

Full Changelog: v0.1.2...v0.2.0

v0.1.2

Choose a tag to compare

@fatwang2 fatwang2 released this 08 Oct 13:28

Let the model choose search parameters, matching the Search1API MCP server: search_service, max_results, include_sites, exclude_sites, and time_range. Settings passed in code become defaults. Result page crawling (crawlResults) stays application-only, and unknown model arguments are ignored instead of failing the tool call. Search and news now default to ten results.

Verification: 17 tests, typechecking, builds, generateText/streamText smoke tests, and the AI SDK 5/6/7 x Zod 3/4 compatibility matrix passed locally and in CI. Three real agent runs through AI Gateway completed with zero tool errors. The release workflow repeats verification before the npm publishing job.

v0.1.1

Choose a tag to compare

@fatwang2 fatwang2 released this 07 Oct 18:16

Validate npm Trusted Publishing through the GitHub Actions release workflow after the initial 0.1.0 package bootstrap. Adds a fresh public-registry installation check for ESM/CommonJS execution and TypeScript consumers.

Verification: 15 tests, typechecking, builds, generateText/streamText smoke tests, and package checks passed locally. The release workflow repeats verification before the npm publishing job.

v0.1.0

Choose a tag to compare

@fatwang2 fatwang2 released this 07 Oct 18:13

First release of @search1api/ai-sdk: web search, news search, and webpage reading tools for AI SDK agents. Includes ESM/CommonJS exports, TypeScript types, and a Next.js streaming chat example.

Validated against AI SDK 5/6/7 and Zod 3/4. npm publication is performed by the release workflow.