feat(agent): 增强 Agent 配置,新增结构化字段与聊天功能支持

This commit is contained in:
hugo committed 2026-07-07 11:10:32 +08:00
1 parent ac4262cd75
commit c8ce77199e
183 files changed
+11690 -2300

No files matched your search

+33 -1
View File
@@ -168,6 +168,8 @@
},
"appId": "Dify App ID",
"apiKey": "API Key",
"apiKeyCreatePlaceholder": "Required when creating",
"apiKeyWriteOnlyPlaceholder": "Leave blank to keep configured key (current: {masked})",
"baseUrl": "API Base URL (Optional)",
"baseUrlPlaceholder": "Default: Dify Config",
"iframeUrl": "Iframe URL",
@@ -178,9 +180,26 @@
"subCategory": "Subcategory",
"subCategoryPlaceholder": "e.g. System Documents (optional)",
"sortOrder": "Sort order",
"sortOrderPlaceholder": "Lower numbers appear first (default 0)"
"sortOrderPlaceholder": "Lower numbers appear first (default 0)",
"agentCode": "Application type",
"runtimeProvider": "Runtime provider",
"conversationMode": "Conversation mode",
"welcomeMessage": "Welcome message",
"welcomeMessagePlaceholder": "Welcome text shown in chat (optional; overrides description)",
"runtimeProviders": {
"dify": "Dify",
"builtin": "Built-in",
"hybrid": "Hybrid",
"iframe": "Iframe embed"
},
"conversationModes": {
"chat": "Standard chat",
"task_chat": "Task-oriented chat",
"embedded": "Embedded page"
}
},
"confirmDelete": "Are you sure you want to delete this agent?",
"resizeColumn": "Drag to resize column; double-click to reset defaults",
"sections": {
"category": "Display category"
},
@@ -214,6 +233,19 @@
"lockInput": "Prevent sending new messages while a task is running",
"scheduleTaskRequired": "Please select a linked schedule first"
},
"registry": {
"title": "Routing & Capabilities",
"subtitle": "Configure intent fast paths and ERP knowledge base without relying on agent name heuristics",
"intentRoutesLabel": "Intent routes",
"intentRoutesHint": "Enable fast paths such as leave SQL, PLM material extraction, maintenance chat, or Text2SQL",
"contentProfileLabel": "Content profile",
"contentProfileHint": "Pick a profile such as generic_entrance or hr_policy, then apply default welcome text and suggested questions into structured columns",
"contentProfileNone": "None",
"applyContentProfileTemplate": "Apply template (fill empty only)",
"overwriteContentProfileTemplate": "Apply template (overwrite)",
"erpKb": "ERP fixed-asset knowledge base",
"erpKbHint": "When enabled, chat defaults to enterprise KB and allows switching to ERP fixed-asset KB"
},
"training": {
"title": "Employee Training Configuration",
"subtitle": "Configure the training workspace pass line, review points, and question bank. After saving, the employee training page will read this backend content first.",
+6 -1
View File
@@ -12,6 +12,7 @@
"agentId": "Agent ID:",
"loadingAgent": "Loading agent...",
"thinking": "Generating response...",
"stopGenerating": "Stop generating",
"disclaimer": "AI can make mistakes. Please verify important information.",
"scrollToLatest": "Scroll to latest message",
"createNewChat": "New Chat",
@@ -72,6 +73,9 @@
"unrecognized": "(unrecognized)"
},
"shippingNoticeUi": {
"rpaModeBrowser": "Real RPA",
"rpaModeMock": "Mock RPA",
"rpaModeUnknown": "RPA mode unknown",
"parseReviewIntro": "Please confirm or revise the parsed result below.",
"parseReviewHeader": "Parsed notice header",
"taskId": "Task ID: {taskId}",
@@ -139,7 +143,7 @@
"focusRepair": "Focus repair",
"switchCurrentTask": "Make current",
"queryShortageDetails": "Query shortage details",
"retryRpa": "Retry RPA",
"retryRpa": "Refresh inventory",
"actionBusyHint": "The current task is still processing. Please wait until it finishes, then try again.",
"retrySingleTask": "Retry single task",
"retrySingleTaskMessage": "Retry current task {taskId}",
@@ -348,6 +352,7 @@
"leaveConfirmPrompt": "Please confirm the following leave information before submitting to OA.",
"oaLeaveSubmitFailed": "OA leave submission failed, please try again later.",
"leaveSubmitFailedPrefix": "Leave submission failed: {error}",
"leaveFeatureAgentRequired": "Leave requests are not enabled for this agent. Switch to an entry with the leave fast route configured.",
"suggestions": {
"whatCanYouDo": "What can you do?",
"helpWriteReport": "Help me write a report",
+1
View File
@@ -18,6 +18,7 @@
"USER_PHONE_EXISTS": "Phone number already exists.",
"USER_UNIQUENESS_CONFLICT": "Data uniqueness conflict.",
"SYSTEM_INTERNAL_ERROR": "Internal server error. Please try again later.",
"AGENT_HANDLER_NOT_CONFIGURED": "Agent business handler is not configured. Please contact an administrator.",
"SYSTEM_HTTP_ERROR": "Request failed.",
"WECOM_RESET_NOT_CONFIGURED": "WeCom password reset is not configured. Enable WeCom under Admin → WeCom → System Settings and fill Corp ID, Agent ID, and Secret.",
"WECOM_NOTIFY_DISABLED": "WeCom notifications are disabled. Enable them under Admin → WeCom → Notify Settings.",