Agent 业务逻辑完善

This commit is contained in:
2026-01-15 19:58:15 +08:00
parent 85294a917a
commit 914c69c2de
14 changed files with 591 additions and 235 deletions

View File

@@ -960,19 +960,18 @@ public class HotakeAiCommonToolsServiceImpl extends BaseServiceImpl implements I
String prompt = AiCommonPromptConstants.initializationAiInterviewQuestionsPrompt();
String resultJson = "Please generate AI interview questions based on the following job description\n" +
String userPrompt_1 = "Please generate AI interview questions based on the following job description\n" +
"\n" +
"**Job Information**\n" +
"职位名称:【\n" +
"技术要求:【\n" +
"经验要求:【\n" +
"面试时长:【】\n" +
"公司文化:【】\n" +
"特殊要求:【\n" +
"Job Title"+rolesInfo.getRoleName()+"\n" +
"Technical Requirements"+rolesInfo.getRequiredSkillsJson()+"-"+rolesInfo.getNiceToHaveSkillsJson()+"\n" +
"Experience Requirements"+rolesInfo.getJobExperience()+"\n" +
"Interview Duration:【】\n" +
"Company Culture:【】\n" +
"Special Requirements"+rolesInfo.getAboutRole()+"\n" +
"`;";
log.info("招聘链接信息提取:{}",resultJson);
log.info("AI面试问题生成:{}",userPrompt_1);
//处理岗位信息补充
String userPrompt_1 = "Please generate complete API-formatted data based on the extracted job information below\\n\\n" +resultJson;
List<Map<String, String>> listOne = new LinkedList();
Map<String, String> mapEntityOne = new HashMap<>();
mapEntityOne.put("role", "system");
@@ -985,8 +984,8 @@ public class HotakeAiCommonToolsServiceImpl extends BaseServiceImpl implements I
String promptJsonOne = JSONUtil.toJsonStr(listOne);
String resultStrOne = chatGPTClient.handleAiChat(promptJsonOne,"RLINKAL");
String resultJsonOne = resultStrOne.replaceAll("```json","").replaceAll("```","");
log.info("招聘信息补全:{}",resultJsonOne);
log.info("AI面试问题生成结果:{}",resultJsonOne);
return "";
return resultJsonOne;
}
}