ai-client-sdk 3.0.0 → 3.0.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.
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Copyright 2025 Hughe5
3
+ * Copyright 2026 shichzh
3
4
  *
4
5
  * Licensed under the Apache License, Version 2.0 (the "License");
5
6
  * you may not use this file except in compliance with the License.
@@ -108,7 +109,7 @@ declare class ToolManager {
108
109
  getHandler(name: string): Handler<Definition>;
109
110
  remove(name: string): void;
110
111
  get definitions(): Definition[];
111
- getDefinitions(names: string[]): Definition[];
112
+ getDefinitions(names: string[]): Definition[] | null;
112
113
  private getValidator;
113
114
  validate(name: string, args: unknown): boolean;
114
115
  call<T extends Definition>(name: string, args: Args<T>): Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-client-sdk",
3
- "version": "3.0.0",
4
- "description": "一款 AI 集成套件,适配任意前端框架,兼容多种大模型、聊天面板、Function Calling、Agent、工作流等。",
3
+ "version": "3.0.2",
4
+ "description": "开发 AI 应用的 SDK,适配任意前端框架,兼容多种大模型、聊天面板、Function Calling、Agent、工作流等。",
5
5
  "author": {
6
6
  "name": "Hughe5",
7
7
  "email": "2100921003@qq.com",