|
@@ -70,7 +70,7 @@ public class AgentPlanServiceImpl extends BaseServiceImpl<AgentPlanMapper, Agent
|
|
|
String agentsInfo = buildAgentsInfo();
|
|
|
// 生成计划提示
|
|
|
String planPrompt = generatePlanPrompt(context.getUserMessage(), agentsInfo, planId);
|
|
|
- currentPlan.setThink_input(planPrompt);
|
|
|
+ currentPlan.setThinkInput(planPrompt);
|
|
|
// 使用 LLM 生成计划
|
|
|
PromptTemplate promptTemplate = new PromptTemplate(planPrompt);
|
|
|
Prompt prompt = promptTemplate.create();
|
|
@@ -87,7 +87,7 @@ public class AgentPlanServiceImpl extends BaseServiceImpl<AgentPlanMapper, Agent
|
|
|
String outputText = response.chatResponse().getResult().getOutput().getText();
|
|
|
// 检查计划是否创建成功
|
|
|
if (planId.equals(planningTool.getCurrentPlanId())) {
|
|
|
- currentPlan.setThink_output(outputText);
|
|
|
+ currentPlan.setThinkOutput(outputText);
|
|
|
currentPlan.setEndTime(LocalDateTime.now());
|
|
|
currentPlan.setDuration(Duration.between(currentPlan.getStartTime(),currentPlan.getEndTime()).getSeconds());
|
|
|
currentPlan.setTitle(planningTool.getCurrentPlan().getTitle());
|