feat(agent): enhance agent and skill management features

- Updated the API to include disabled agent IDs for better management of user-specific agent visibility.
- Introduced a new function to set the disabled state for shared agents, allowing users to manage their shared agent preferences.
- Added a new Skills API to retrieve available skills, enhancing the overall agent capabilities.
- Improved the AgentSelector and related components to filter out disabled agents, ensuring a cleaner user experience.
- Updated localization strings to reflect new features and improve clarity in agent and skill management.

This update enhances the user experience by providing better control over agent visibility and introducing new skill management functionalities.
This commit is contained in:
wizardchen
2026-02-05 16:29:56 +08:00
committed by lyingbug
parent 5ab20a9148
commit c806eaf7f9
22 changed files with 1668 additions and 964 deletions
+18
View File
@@ -14,6 +14,12 @@ export default {
confirmLogout: 'Are you sure you want to logout?',
systemInfo: 'System Information'
},
listSpaceSidebar: {
title: 'Filter',
all: 'All',
mine: 'Mine',
spaces: 'Spaces'
},
knowledgeBase: {
title: 'Knowledge Base',
list: 'Knowledge Base List',
@@ -224,7 +230,11 @@ export default {
title: 'Agents',
subtitle: 'Configure and manage your agents to customize conversation behavior and capabilities',
createAgent: 'Create Agent',
createAgentShort: 'New',
builtin: 'Built-in',
disabled: 'Disabled',
disable: 'Disable',
enable: 'Enable',
noDescription: 'No description',
selectAgent: 'Select Agent',
noAgents: 'No agents',
@@ -309,6 +319,8 @@ export default {
builtinReadonly: 'Built-in agents cannot be edited',
copied: 'Agent copied successfully',
copyFailed: 'Copy failed',
disabled: 'Agent disabled',
enabled: 'Agent enabled',
},
editor: {
createTitle: 'Create Agent',
@@ -329,6 +341,8 @@ export default {
name: 'Name',
namePlaceholder: 'Enter agent name',
nameRequired: 'Agent name is required',
disabled: 'Disable',
disabledDesc: 'When disabled, this agent will not appear in the conversation agent dropdown',
systemPromptRequired: 'System prompt is required',
modelRequired: 'Please select a model',
rerankModelRequired: 'ReRank model is required when using knowledge bases',
@@ -1090,6 +1104,7 @@ export default {
},
knowledgeList: {
create: 'Create Knowledge Base',
createShort: 'New',
createFAQ: 'Create FAQ Knowledge Base',
subtitle: 'Manage and organize your knowledge bases, supporting document-based and FAQ-based knowledge bases',
myKnowledgeBases: 'My Knowledge Bases',
@@ -1253,6 +1268,7 @@ export default {
searchTest: 'Search Test',
addFaq: 'Add FAQ',
manageFaq: 'FAQ Actions',
createGroup: 'New',
searchTestTitle: 'FAQ Search Test',
queryLabel: 'Query',
queryPlaceholder: 'Enter a question to search',
@@ -2377,7 +2393,9 @@ export default {
title: 'Shared Spaces',
subtitle: 'Create or join shared spaces to share knowledge bases and agents with your team',
createOrg: 'Create Space',
createOrgShort: 'New',
joinOrg: 'Join Space',
joinOrgShort: 'Join',
name: 'Space Name',
namePlaceholder: 'Enter space name',
nameRequired: 'Please enter space name',
+18
View File
@@ -14,6 +14,12 @@ export default {
confirmLogout: "确定要退出登录吗?",
systemInfo: "系统信息",
},
listSpaceSidebar: {
title: "筛选",
all: "全部",
mine: "我的",
spaces: "空间",
},
knowledgeBase: {
title: "知识库",
list: "知识库列表",
@@ -762,7 +768,11 @@ export default {
title: "智能体",
subtitle: "配置和管理您的智能体,自定义对话行为和能力",
createAgent: "创建智能体",
createAgentShort: "新建",
builtin: "内置",
disabled: "已停用",
disable: "停用",
enable: "启用",
noDescription: "暂无描述",
selectAgent: "选择智能体",
noAgents: "暂无智能体",
@@ -847,6 +857,8 @@ export default {
builtinReadonly: "内置智能体不可编辑",
copied: "智能体复制成功",
copyFailed: "复制失败",
disabled: "已停用",
enabled: "已启用",
},
editor: {
createTitle: "创建智能体",
@@ -867,6 +879,8 @@ export default {
name: "名称",
namePlaceholder: "请输入智能体名称",
nameRequired: "请输入智能体名称",
disabled: "停用",
disabledDesc: "停用后该智能体将不会在对话窗口的智能体下拉列表中显示",
systemPromptRequired: "请输入系统提示词",
modelRequired: "请选择模型",
rerankModelRequired: "使用知识库时请选择 ReRank 模型",
@@ -1482,6 +1496,7 @@ export default {
},
knowledgeList: {
create: "新建知识库",
createShort: "新建",
createFAQ: "新建 FAQ 知识库",
subtitle: "管理和组织您的知识库,支持文档型和问答型知识库",
myKnowledgeBases: "我的知识库",
@@ -1653,6 +1668,7 @@ export default {
searchTest: "检索测试",
addFaq: "添加FAQ",
manageFaq: "FAQ操作",
createGroup: "新建",
searchTestTitle: "FAQ 检索测试",
queryLabel: "查询内容",
queryPlaceholder: "请输入要检索的问题",
@@ -2382,7 +2398,9 @@ export default {
title: "共享空间",
subtitle: "创建或加入共享空间,与团队成员共享知识库与智能体",
createOrg: "创建空间",
createOrgShort: "新建",
joinOrg: "加入空间",
joinOrgShort: "加入",
name: "空间名称",
namePlaceholder: "请输入空间名称",
nameRequired: "请输入空间名称",