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.
- package/README.md +1 -1
- package/dist/ai-client-sdk.mjs +6276 -6304
- package/dist/ai-client-sdk.umd.js +171 -171
- package/dist/utils/agent.d.ts +2 -1
- package/package.json +2 -2
package/dist/utils/agent.d.ts
CHANGED
|
@@ -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.
|
|
4
|
-
"description": "
|
|
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",
|