feat(api): enhance organization shared knowledge base and agent functionalities
- Introduced new interfaces for handling shared knowledge bases and agents, including visibility and selection modes for agents. - Added API functions to list shared knowledge bases and agents within an organization, improving data retrieval for UI components. - Updated existing components to utilize the new API endpoints and interfaces, ensuring accurate representation of shared resources. - Enhanced error handling in API calls to provide clearer feedback on failures. This update improves the functionality and user experience by providing better access to shared resources and enhancing the overall data structure within the application.
This commit is contained in:
@@ -917,6 +917,7 @@ export default {
|
||||
noResult: 'No results',
|
||||
},
|
||||
mentionDetail: {
|
||||
readOnlyFromAgent: 'Read-only in this conversation; not shown in Knowledge Base list',
|
||||
faqCount: '{count} Q&A entries',
|
||||
kbCount: '{count} documents',
|
||||
belongsToKb: 'Knowledge base: ',
|
||||
@@ -1115,6 +1116,8 @@ export default {
|
||||
sharedToOrgs: 'Shared to {count} space(s)',
|
||||
sharedLabel: 'Shared',
|
||||
myLabel: 'Mine',
|
||||
fromAgent: 'From agent {name}',
|
||||
fromAgentShort: 'Agent: {name}',
|
||||
tabs: {
|
||||
all: 'All',
|
||||
myKnowledgeBases: 'My Knowledge Bases',
|
||||
@@ -1145,7 +1148,15 @@ export default {
|
||||
overviewDesc: 'View knowledge base information and source',
|
||||
permission: 'Permission',
|
||||
permissionDesc: 'View your permissions for this knowledge base',
|
||||
sourceOrg: 'Source Space',
|
||||
sourceType: 'Source',
|
||||
sourceTypeKbShare: 'KB shared directly to this space',
|
||||
sourceTypeAgent: 'Visible via shared agent',
|
||||
sourceOrg: 'Space',
|
||||
sourceFromAgent: 'Agent',
|
||||
agentKbStrategy: 'Agent KB strategy',
|
||||
agentKbStrategyAll: 'All knowledge bases',
|
||||
agentKbStrategySelected: 'Selected knowledge bases',
|
||||
agentKbStrategyNone: 'No knowledge bases',
|
||||
sharedAt: 'Shared At',
|
||||
myPermission: 'My Permission',
|
||||
canEdit: 'Can edit knowledge base content',
|
||||
@@ -2531,6 +2542,8 @@ export default {
|
||||
sharedAgents: 'Shared Agents',
|
||||
noSharedAgents: 'No shared agents yet',
|
||||
sharedAgentsDesc: 'Agents shared to this space; members can use them in chat',
|
||||
sharedAgentsKbHint: 'Knowledge bases linked to an agent are only available (read-only) when members use that agent in a conversation (via @). They do not appear in the Knowledge Base list. To let members see or edit a knowledge base in the list, share that knowledge base to this space separately.',
|
||||
sharedAgentsKbHintShort: 'Agent-linked knowledge is read-only in chat; share the KB to this space if members should see or edit it in the list.',
|
||||
noSharedAgentsTip: 'Admins can share agents to this space from agent settings',
|
||||
sharePermissionLabel: 'Space permission',
|
||||
myPermissionLabel: 'My actual permission',
|
||||
|
||||
@@ -759,6 +759,7 @@ export default {
|
||||
kbCount: "共 {count} 个文档",
|
||||
belongsToKb: "所属知识库:",
|
||||
belongsToOrg: "所属空间:",
|
||||
readOnlyFromAgent: "仅在此对话中只读,不显示在知识库列表中",
|
||||
},
|
||||
agent: {
|
||||
taskLabel: "任务:",
|
||||
@@ -1507,6 +1508,8 @@ export default {
|
||||
sharedToOrgs: "已共享给 {count} 个空间",
|
||||
sharedLabel: "共享",
|
||||
myLabel: "我的",
|
||||
fromAgent: "来自智能体 {name}",
|
||||
fromAgentShort: "智能体: {name}",
|
||||
tabs: {
|
||||
all: "全部",
|
||||
myKnowledgeBases: "我的知识库",
|
||||
@@ -1534,7 +1537,15 @@ export default {
|
||||
overviewDesc: "查看知识库基本信息和来源",
|
||||
permission: "权限",
|
||||
permissionDesc: "查看您在此知识库的操作权限",
|
||||
sourceType: "来源方式",
|
||||
sourceTypeKbShare: "知识库直接共享到本空间",
|
||||
sourceTypeAgent: "智能体可访问(通过共享智能体可见)",
|
||||
sourceOrg: "来源空间",
|
||||
sourceFromAgent: "智能体",
|
||||
agentKbStrategy: "智能体知识库策略",
|
||||
agentKbStrategyAll: "全部知识库",
|
||||
agentKbStrategySelected: "指定知识库",
|
||||
agentKbStrategyNone: "不使用知识库",
|
||||
sharedAt: "共享时间",
|
||||
myPermission: "我的权限",
|
||||
canEdit: "可以编辑知识库内容",
|
||||
@@ -2536,6 +2547,8 @@ export default {
|
||||
sharedAgents: "共享智能体",
|
||||
noSharedAgents: "暂无共享的智能体",
|
||||
sharedAgentsDesc: "已共享到本空间的智能体,成员可在对话中使用",
|
||||
sharedAgentsKbHint: "智能体绑定的知识库仅在成员使用该智能体对话时可 @ 使用(只读),不会出现在「知识库列表」中。若需成员在列表中看到或编辑知识库,请单独将知识库共享到本空间。",
|
||||
sharedAgentsKbHintShort: "智能体绑定知识仅对话内只读;需在列表看到或编辑请单独共享知识库",
|
||||
noSharedAgentsTip: "管理员可将智能体从智能体设置中共享到本空间",
|
||||
sharePermissionLabel: "空间权限",
|
||||
myPermissionLabel: "我的实际权限",
|
||||
|
||||
Reference in New Issue
Block a user