feat: adapt preloaded skills to smart-reasoning agent

This commit is contained in:
nullkey
2026-02-04 03:40:09 +08:00
committed by lyingbug
parent 33f7e7da66
commit 3f21345546
32 changed files with 2194 additions and 719 deletions
+5
View File
@@ -21,6 +21,11 @@ export interface CustomAgentConfig {
mcp_selection_mode?: 'all' | 'selected' | 'none';
mcp_services?: string[]; // 选择的MCP服务ID列表
// ===== Skills设置(仅Agent模式)=====
// Skills选择模式:all=全部预装, selected=指定, none=不使用
skills_selection_mode?: 'all' | 'selected' | 'none';
selected_skills?: string[]; // 选择的Skill名称列表
// ===== 知识库设置 =====
// 知识库选择模式:all=全部知识库, selected=指定知识库, none=不使用知识库
kb_selection_mode?: 'all' | 'selected' | 'none';
+12
View File
@@ -0,0 +1,12 @@
import { get } from "../../utils/request";
// Skill信息
export interface SkillInfo {
name: string;
description: string;
}
// 获取预装Skills列表
export function listSkills() {
return get<{ data: SkillInfo[] }>('/api/v1/skills');
}