@opentiny/next-remoter 0.3.1 → 0.3.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.
@@ -123,7 +123,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
123
123
  * 由 remoter 调用 next-sdk 的 skill 能力处理:生成 systemPrompt 技能说明、内置 get_skill_content 工具,大模型可自动识别并加载技能
124
124
  */
125
125
  skills: {
126
- type: () => Record<string, string>;
126
+ type: () => Record<string, string | (() => Promise<string>)>;
127
127
  default: undefined;
128
128
  };
129
129
  /** 布局模式:支持所有 CSS position 属性值 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky' */
@@ -265,6 +265,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
265
265
  content: string;
266
266
  uiContent: any[];
267
267
  }) => void;
268
+ "chat-stream-finish": () => void;
268
269
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
269
270
  fullscreen: import('vue').PropType<any>;
270
271
  show: import('vue').PropType<any>;
@@ -371,7 +372,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
371
372
  * 由 remoter 调用 next-sdk 的 skill 能力处理:生成 systemPrompt 技能说明、内置 get_skill_content 工具,大模型可自动识别并加载技能
372
373
  */
373
374
  skills: {
374
- type: () => Record<string, string>;
375
+ type: () => Record<string, string | (() => Promise<string>)>;
375
376
  default: undefined;
376
377
  };
377
378
  /** 布局模式:支持所有 CSS position 属性值 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky' */
@@ -394,6 +395,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
394
395
  default: undefined;
395
396
  };
396
397
  }>> & Readonly<{
398
+ "onChat-stream-finish"?: (() => any) | undefined;
397
399
  "onBefore-ai-render"?: ((currMessage: {
398
400
  role: string;
399
401
  content: string;
@@ -416,7 +418,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
416
418
  genUiComponents: Record<string, any>;
417
419
  customMarketMcpServers: PluginInfo[];
418
420
  llmConfigs: UnifiedModelConfig[];
419
- skills: Record<string, string>;
421
+ skills: Record<string, string | (() => Promise<string>)>;
420
422
  layoutMode: "absolute" | "fixed" | "static" | "relative" | "sticky";
421
423
  debugStream: boolean;
422
424
  promptItems: unknown[];
@@ -15,7 +15,8 @@ export declare class CustomAgentModelProvider extends BaseModelProvider {
15
15
  /** 生成式UI启用状态 */
16
16
  isGenuiEnabled?: Ref<boolean>;
17
17
  debugStream: boolean;
18
- constructor(config: AIModelConfig, systemPrompt: string, llmConfig?: ICustomAgentModelProviderLlmConfig);
18
+ emit: ((event: string, data: any) => void) | undefined;
19
+ constructor(config: AIModelConfig, systemPrompt: string, llmConfig?: ICustomAgentModelProviderLlmConfig, emit?: (event: string, data: any) => void);
19
20
  /**
20
21
  * 更新大语言模型配置
21
22
  * Update LLM configuration