feat: remove fallback mode and max AI reply rounds from AIAgent model and related components
This commit is contained in:
@@ -207,9 +207,6 @@ export type AIAgent = {
|
||||
teams: { id: number; name: string }[]
|
||||
handoffMode: number
|
||||
handoffModeName: string
|
||||
maxAiReplyRounds: number
|
||||
fallbackMode: number
|
||||
fallbackModeName: string
|
||||
fallbackMessage: string
|
||||
knowledgeIds: number[]
|
||||
knowledgeBaseNames: string[]
|
||||
@@ -241,8 +238,6 @@ export type CreateAIAgentPayload = {
|
||||
replyTimeoutSeconds: number
|
||||
teamIds: number[]
|
||||
handoffMode: number
|
||||
maxAiReplyRounds: number
|
||||
fallbackMode: number
|
||||
fallbackMessage: string
|
||||
knowledgeIds: number[]
|
||||
skillIds: number[]
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
// Code generated by cmd/enums/generator.go. DO NOT EDIT.
|
||||
|
||||
export enum AIAgentFallbackMode {
|
||||
NoAnswer = 1,
|
||||
GuideRephrase = 2,
|
||||
Handoff = 3,
|
||||
}
|
||||
export const AIAgentFallbackModeLabels: Record<AIAgentFallbackMode, string> = {
|
||||
[AIAgentFallbackMode.NoAnswer]: "直接声明无答案",
|
||||
[AIAgentFallbackMode.GuideRephrase]: "引导补充信息或换个问法",
|
||||
[AIAgentFallbackMode.Handoff]: "直接转人工",
|
||||
}
|
||||
|
||||
export enum AIAgentHandoffMode {
|
||||
WaitPool = 1,
|
||||
DefaultTeamPool = 2,
|
||||
@@ -75,9 +64,11 @@ export const ContactTypeLabels: Record<ContactType, string> = {
|
||||
|
||||
export enum ExternalSource {
|
||||
WebChat = "web_chat",
|
||||
WxWorkKF = "wxwork_kf",
|
||||
}
|
||||
export const ExternalSourceLabels: Record<ExternalSource, string> = {
|
||||
[ExternalSource.WebChat]: "网页客服",
|
||||
[ExternalSource.WxWorkKF]: "企业微信客服",
|
||||
}
|
||||
|
||||
export enum Gender {
|
||||
@@ -340,15 +331,6 @@ export const ServiceStatusLabels: Record<ServiceStatus, string> = {
|
||||
[ServiceStatus.Busy]: "忙碌",
|
||||
}
|
||||
|
||||
export enum SkillExecutionMode {
|
||||
PromptOnly = "prompt_only",
|
||||
MCPTool = "mcp_tool",
|
||||
}
|
||||
export const SkillExecutionModeLabels: Record<SkillExecutionMode, string> = {
|
||||
[SkillExecutionMode.PromptOnly]: "Prompt直出",
|
||||
[SkillExecutionMode.MCPTool]: "MCP工具",
|
||||
}
|
||||
|
||||
export enum Status {
|
||||
Ok = 0,
|
||||
Disabled = 1,
|
||||
@@ -369,19 +351,6 @@ export const ThirdProviderLabels: Record<ThirdProvider, string> = {
|
||||
[ThirdProvider.Dingtalk]: "钉钉",
|
||||
}
|
||||
|
||||
export enum TicketPriority {
|
||||
Low = 1,
|
||||
Normal = 2,
|
||||
High = 3,
|
||||
Urgent = 4,
|
||||
}
|
||||
export const TicketPriorityLabels: Record<TicketPriority, string> = {
|
||||
[TicketPriority.Low]: "低",
|
||||
[TicketPriority.Normal]: "普通",
|
||||
[TicketPriority.High]: "高",
|
||||
[TicketPriority.Urgent]: "紧急",
|
||||
}
|
||||
|
||||
export enum TicketSeverity {
|
||||
Minor = 1,
|
||||
Major = 2,
|
||||
|
||||
Reference in New Issue
Block a user