@opentiny/next-sdk 0.2.1 → 0.2.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.
@@ -44,8 +44,6 @@ export class AgentModelProvider {
44
44
  onUpdatedTools: (() => void) | undefined
45
45
  /** Agent 内部报错时,抛出的错误事件 */
46
46
  onError: ((msg: string, err?: any) => void) | undefined
47
- /** MCP Client 断开连接时的回调 */
48
- onClientDisconnected?: (serverName: string, reason?: string) => void
49
47
  /** 缓存 ai-sdk response 中的 多轮会话的上下文 */
50
48
  messages: any[] = []
51
49
  /** 是否使用 ReAct 模式(通过提示词而非 function calling 进行工具调用) */
@@ -28,8 +28,6 @@ export declare class AgentModelProvider {
28
28
  onUpdatedTools: (() => void) | undefined;
29
29
  /** Agent 内部报错时,抛出的错误事件 */
30
30
  onError: ((msg: string, err?: any) => void) | undefined;
31
- /** MCP Client 断开连接时的回调 */
32
- onClientDisconnected?: (serverName: string, reason?: string) => void;
33
31
  /** 缓存 ai-sdk response 中的 多轮会话的上下文 */
34
32
  messages: any[];
35
33
  /** 是否使用 ReAct 模式(通过提示词而非 function calling 进行工具调用) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/next-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Chunhui Mo",