增加提示词
This commit is contained in:
@@ -42,6 +42,28 @@ public interface IAudioTextAnalysisLlmService {
|
||||
String ownerPhone,
|
||||
String customerName,
|
||||
String customerPhone);
|
||||
|
||||
/**
|
||||
* 处理完整的业务逻辑:调用大模型生成总结,解析JSON,保存数据
|
||||
* 此方法用于家具场景的完整业务处理
|
||||
*
|
||||
* @param sceneType 业务场景类型
|
||||
* @param recordingText 录音转写文本
|
||||
* @param parentId 父ID(AudioManagement的ID)
|
||||
* @param ownerName 所属人姓名
|
||||
* @param ownerPhone 所属人电话
|
||||
* @param customerName 客户姓名
|
||||
* @param customerPhone 客户电话
|
||||
* @return 保存后的AudioTextAnalysisFurniture对象,如果处理失败返回null
|
||||
*/
|
||||
AudioTextAnalysisFurniture generateSummaryAndSave_V2(
|
||||
AudioAnalysisSceneType sceneType,
|
||||
String recordingText,
|
||||
String parentId,
|
||||
String ownerName,
|
||||
String ownerPhone,
|
||||
String customerName,
|
||||
String customerPhone);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -236,6 +236,22 @@ public class AudioTextAnalysisLlmServiceImpl implements IAudioTextAnalysisLlmSer
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AudioTextAnalysisFurniture generateSummaryAndSave_V2(
|
||||
AudioAnalysisSceneType sceneType,
|
||||
String recordingText,
|
||||
String parentId,
|
||||
String ownerName,
|
||||
String ownerPhone,
|
||||
String customerName,
|
||||
String customerPhone) {
|
||||
|
||||
AudioTextAnalysisFurniture furniture = new AudioTextAnalysisFurniture();
|
||||
furniture.setRecordingText(recordingText);
|
||||
|
||||
|
||||
return furniture;
|
||||
}
|
||||
/**
|
||||
* 解析大模型返回的JSON结果并填充到AudioTextAnalysisFurniture对象
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user