Package com.bytedesk.ai.robot_agent
Class RobotAgentService
java.lang.Object
com.bytedesk.ai.robot.AbstractRobotService
com.bytedesk.ai.robot_agent.RobotAgentService
智能工单填写、智能小结、智能质检
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final RobotRestServiceprivate final SpringAIServiceRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstractMeaningRepresentation(String content, String orgUid) 抽象意义表示 - 纯文本处理,不需要知识库afterSaleCustomerAssistant(String content, String orgUid) 售后客服agentInspection(String content, String orgUid) 客服质检autoFillTicket(String content, String orgUid) 工单生成chineseWordSegmentation(String content, String orgUid) 中文分词 - 纯文本处理,不需要知识库constituencyParsing(String content, String orgUid) 成分句法分析 - 纯文本处理,不需要知识库coreferenceResolution(String content, String orgUid) 指代消解 - 纯文本处理,不需要知识库customerAssistant(String content, String orgUid) 客服助手customerService(String content, String orgUid) 客服问答customerServiceExpert(String content, String orgUid) 客服专家dependencyParsing(String content, String orgUid) 依存句法分析 - 纯文本处理,不需要知识库emotionAnalysis(String content, String orgUid) 情绪分析 - 纯文本处理,不需要知识库emotionAnalysisJson(String content, String orgUid) 情绪分析(结构化 JSON 输出)entityRecognition(String content, String orgUid) 实体识别 - 纯文本处理,不需要知识库faqSimilarQuestions(String content, String orgUid) FAQ相似问题生成 将大模型返回的相似问题数组添加到FaqRequest对象的similarQuestions字段中generateFaq(String content, String orgUid) 生成FAQgenerateWechatArticle(String content, String orgUid) 生成公众号文章generateXiaohongshuArticle(String content, String orgUid) 生成小红书文章protected RobotRestService获取RobotRestService实例,由子类实现protected SpringAIServiceRegistry获取SpringAIServiceRegistry实例,由子类实现intentClassification(String content, String orgUid) 意图识别intentClassificationJson(String content, String orgUid) 意图识别(结构化 JSON 输出)intentRewrite(String content, String orgUid) 意图改写keywordExtraction(String content, String orgUid) 关键词短语提取 - 纯文本处理,不需要知识库languageRecognition(String content, String orgUid) 语言识别 - 纯文本处理,不需要知识库languageTranslation(String content, String orgUid) 语言翻译 - 纯文本处理,不需要知识库logisticsCustomerAssistant(String content, String orgUid) 物流客服partOfSpeechTagging(String content, String orgUid) 词性标注 - 纯文本处理,不需要知识库preSaleCustomerAssistant(String content, String orgUid) 售前客服protected StringprocessLlmRequest(String name, String orgUid, String query, boolean searchKnowledgeBase) 通用能力:默认使用通用的大模型配置提示(可控制是否查询知识库)processSyncRequestByRobotUid(String robotUid, String query, boolean searchKnowledgeBase) 按 robotUid 直接调用 LLM。private StringprocessTicketSyncRequest(String name, String orgUid, String query) 工单相关能力:返回工单专用的大模型配置提示queryExpansion(String content, String orgUid) 问题扩写robotInspection(String content, String orgUid) 机器人质检semanticAnalysis(String content, String orgUid) 语义分析 - 纯文本处理,不需要知识库semanticDependencyAnalysis(String content, String orgUid) 语义依存分析 - 纯文本处理,不需要知识库semanticRoleLabeling(String content, String orgUid) 语义角色标注 - 纯文本处理,不需要知识库semanticTextSimilarity(String content, String orgUid) 语义文本相似度 - 纯文本处理,不需要知识库sentimentAnalysis(String content, String orgUid) 情感分析 - 纯文本处理,不需要知识库textClassification(String content, String orgUid) 文本分类 - 纯文本处理,不需要知识库textCorrection(String content, String orgUid) 文本纠错 - 纯文本处理,不需要知识库textStyleTransfer(String content, String orgUid) 文本风格转换 - 纯文本处理,不需要知识库threadClassification(String content, String orgUid) 会话分类threadCompletion(String content, String orgUid) 输入补全threadSummary(String content, String orgUid) 会话摘要threadSummaryJson(String content, String orgUid) 会话摘要(结构化 JSON 输出)ticketAssistant(String content, String orgUid) 工单助手ticketSolutionRecommendation(String content, String orgUid) 工单解决方案推荐ticketSummary(String content, String orgUid) 工单小结visitorInvitation(String content, String orgUid) 接客助手visitorPortrait(String content, String orgUid) 访客画像visitorRecommendation(String content, String orgUid) 导购助手空白智能体private static StringwrapJsonPrompt(String schemaJson, String content) Methods inherited from class com.bytedesk.ai.robot.AbstractRobotService
processMultiModalSyncRequest, processSyncRequest, processSyncRequest, processSyncRequest
-
Field Details
-
JSON_ONLY_TIP
- See Also:
-
robotRestService
-
springAIServiceRegistry
-
-
Constructor Details
-
RobotAgentService
public RobotAgentService()
-
-
Method Details
-
wrapJsonPrompt
-
getRobotRestService
Description copied from class:AbstractRobotService获取RobotRestService实例,由子类实现- Specified by:
getRobotRestServicein classAbstractRobotService
-
getSpringAIServiceRegistry
Description copied from class:AbstractRobotService获取SpringAIServiceRegistry实例,由子类实现- Specified by:
getSpringAIServiceRegistryin classAbstractRobotService
-
processTicketSyncRequest
工单相关能力:返回工单专用的大模型配置提示 -
processLlmRequest
protected String processLlmRequest(String name, String orgUid, String query, boolean searchKnowledgeBase) 通用能力:默认使用通用的大模型配置提示(可控制是否查询知识库) -
processSyncRequestByRobotUid
public String processSyncRequestByRobotUid(String robotUid, String query, boolean searchKnowledgeBase) 按 robotUid 直接调用 LLM。 用于 SettingsEntity.robotUid 覆盖默认的 name+orgUid 机器人选择逻辑。 -
autoFillTicket
工单生成 -
ticketAssistant
工单助手 -
ticketSolutionRecommendation
工单解决方案推荐 -
ticketSummary
工单小结 -
customerService
客服问答 -
customerAssistant
客服助手 -
customerServiceExpert
客服专家 -
preSaleCustomerAssistant
售前客服 -
afterSaleCustomerAssistant
售后客服 -
logisticsCustomerAssistant
物流客服 -
visitorPortrait
访客画像 -
visitorInvitation
接客助手 -
visitorRecommendation
导购助手 -
robotInspection
机器人质检 -
agentInspection
客服质检 -
languageTranslation
语言翻译 - 纯文本处理,不需要知识库 -
languageRecognition
语言识别 - 纯文本处理,不需要知识库 -
semanticAnalysis
语义分析 - 纯文本处理,不需要知识库 -
entityRecognition
实体识别 - 纯文本处理,不需要知识库 -
sentimentAnalysis
情感分析 - 纯文本处理,不需要知识库 -
emotionAnalysis
情绪分析 - 纯文本处理,不需要知识库 -
emotionAnalysisJson
情绪分析(结构化 JSON 输出) -
threadClassification
会话分类 -
threadSummary
会话摘要 -
threadSummaryJson
会话摘要(结构化 JSON 输出) -
threadCompletion
输入补全 -
generateFaq
生成FAQ- Parameters:
content- 用于生成FAQ的内容orgUid- 组织ID- Returns:
- FaqRequest对象列表
-
generateWechatArticle
生成公众号文章 -
generateXiaohongshuArticle
生成小红书文章 -
chineseWordSegmentation
中文分词 - 纯文本处理,不需要知识库 -
partOfSpeechTagging
词性标注 - 纯文本处理,不需要知识库 -
dependencyParsing
依存句法分析 - 纯文本处理,不需要知识库 -
constituencyParsing
成分句法分析 - 纯文本处理,不需要知识库 -
semanticDependencyAnalysis
语义依存分析 - 纯文本处理,不需要知识库 -
semanticRoleLabeling
语义角色标注 - 纯文本处理,不需要知识库 -
abstractMeaningRepresentation
抽象意义表示 - 纯文本处理,不需要知识库 -
coreferenceResolution
指代消解 - 纯文本处理,不需要知识库 -
semanticTextSimilarity
语义文本相似度 - 纯文本处理,不需要知识库 -
textStyleTransfer
文本风格转换 - 纯文本处理,不需要知识库 -
keywordExtraction
关键词短语提取 - 纯文本处理,不需要知识库 -
textCorrection
文本纠错 - 纯文本处理,不需要知识库 -
textClassification
文本分类 - 纯文本处理,不需要知识库 -
faqSimilarQuestions
FAQ相似问题生成 将大模型返回的相似问题数组添加到FaqRequest对象的similarQuestions字段中 -
voidAgent
空白智能体 -
queryExpansion
问题扩写 -
intentRewrite
意图改写 -
intentClassification
意图识别 -
intentClassificationJson
意图识别(结构化 JSON 输出)
-