sciverse 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](#english) | [中文](#中文)
4
4
 
5
- SciVerse open-platform TypeScript SDK for academic paper retrieval. Wraps five
5
+ Sciverse open-platform TypeScript SDK for academic paper retrieval. Wraps five
6
6
  retrieval tools (`searchPapers`, `semanticSearch`, `readContent`, `listCatalog`,
7
7
  `getResource`) behind one fetch-based client + ready-to-use `OPENAI_TOOLS` /
8
8
  `ANTHROPIC_TOOLS` constants for direct tool-calling.
@@ -120,13 +120,13 @@ see [`sciverse-mcp-server`](https://www.npmjs.com/package/sciverse-mcp-server).
120
120
 
121
121
  ### Error handling
122
122
 
123
- Non-2xx responses throw `new Error("SciVerse API <status>: <body>")`:
123
+ Non-2xx responses throw `new Error("Sciverse API <status>: <body>")`:
124
124
 
125
125
  ```ts
126
126
  try {
127
127
  await c.searchPapers({ query: "x" });
128
128
  } catch (e) {
129
- console.error(e); // "SciVerse API 401: {...}"
129
+ console.error(e); // "Sciverse API 401: {...}"
130
130
  }
131
131
  ```
132
132
 
@@ -149,7 +149,7 @@ try {
149
149
 
150
150
  ## 中文
151
151
 
152
- SciVerse 开放平台 TypeScript SDK,5 个学术文献检索 tool(结构化元数据、
152
+ Sciverse 开放平台 TypeScript SDK,5 个学术文献检索 tool(结构化元数据、
153
153
  语义检索、原文切片、字段 introspection、论文图片)。
154
154
 
155
155
  ### 安装
@@ -256,13 +256,13 @@ Claude Agent SDK / OpenAI Agents SDK 写法更简洁(agent loop 由框架处
256
256
 
257
257
  ### 错误处理
258
258
 
259
- 非 2xx 响应抛 `new Error("SciVerse API <status>: <body>")`:
259
+ 非 2xx 响应抛 `new Error("Sciverse API <status>: <body>")`:
260
260
 
261
261
  ```ts
262
262
  try {
263
263
  await c.searchPapers({ query: "x" });
264
264
  } catch (e) {
265
- console.error(e); // "SciVerse API 401: {...}"
265
+ console.error(e); // "Sciverse API 401: {...}"
266
266
  }
267
267
  ```
268
268
 
package/dist/tools.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Auto-generated. Do not edit. Run scripts/build.sh. */
2
- export declare const TOOLS_VERSION = "0.5.0";
2
+ export declare const TOOLS_VERSION = "0.5.2";
3
3
  export declare const OPENAI_TOOLS: readonly [{
4
4
  readonly type: "function";
5
5
  readonly function: {
package/dist/tools.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Auto-generated. Do not edit. Run scripts/build.sh. */
2
- export const TOOLS_VERSION = '0.5.0';
2
+ export const TOOLS_VERSION = '0.5.2';
3
3
  export const OPENAI_TOOLS = [
4
4
  {
5
5
  "type": "function",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sciverse",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "SciVerse Agent Tools — OpenAI/Anthropic/LangChain compatible tool schema and async client for SciVerse retrieval APIs",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/opendatalab/Sciverse-Agent-Tools/tree/main/packages/typescript",