netstar-ai-chat 1.1.1 → 1.1.3
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/dist/AgentChat/AIMessage.d.ts +11 -0
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +254 -208
- package/dist/style.css +1 -1
- package/dist/types/agent.d.ts +11 -0
- package/package.json +1 -1
|
@@ -367,6 +367,8 @@ export interface ExtendedAgentRuntime extends AgentRuntime {
|
|
|
367
367
|
export interface AgentOption {
|
|
368
368
|
/** Agent 运行时实例 */
|
|
369
369
|
agent: AgentRuntime;
|
|
370
|
+
/** Sender footer 中的扩展控件(可选),切换 Agent 时自动替换 */
|
|
371
|
+
footerControls?: FooterControl[];
|
|
370
372
|
/** 用于唯一标识此 Agent,也作为下拉选项的 value */
|
|
371
373
|
key: string;
|
|
372
374
|
/** 下拉选择器中展示的友好名称 */
|
|
@@ -382,6 +384,15 @@ export interface AgentOption {
|
|
|
382
384
|
*/
|
|
383
385
|
toolRenderers?: ToolRendererMap;
|
|
384
386
|
}
|
|
387
|
+
/** Sender footer 扩展控件 */
|
|
388
|
+
export interface FooterControl {
|
|
389
|
+
/** Vue 组件定义,ChatPanel 会注入 props: agent, agentOption, disabled, ...props */
|
|
390
|
+
component: import('vue').Component;
|
|
391
|
+
/** 唯一标识(v-for key) */
|
|
392
|
+
key: string;
|
|
393
|
+
/** 透传给组件的额外 props(会与 agent/agentOption/disabled 合并) */
|
|
394
|
+
props?: Record<string, unknown>;
|
|
395
|
+
}
|
|
385
396
|
/**
|
|
386
397
|
* 将任意 payload 序列化为截断后的预览字符串。
|
|
387
398
|
* - `string` → 直接使用
|