Skip to content

Commit 769681b

Browse files
committed
fix(jmanus):agent namespace incapable with old config #1644
1 parent 4fee07e commit 769681b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

spring-ai-alibaba-jmanus/src/main/java/com/alibaba/cloud/ai/example/manus/planning/finalizer/PlanFinalizer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void generateSummary(ExecutionContext context) {
7878
context.setResultSummary(summary);
7979
recordPlanCompletion(context, summary);
8080
return;
81+
8182
}
8283
PlanInterface plan = context.getPlan();
8384
String executionDetail = plan.getPlanExecutionStateStringFormat(false);

spring-ai-alibaba-jmanus/src/main/java/com/alibaba/cloud/ai/example/manus/tool/cron/CronTool.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,14 @@ public String getParameters() {
131131
},
132132
"cronTime": {
133133
"type": "string",
134-
"description": "Cron expression for scheduling (e.g., '0 0 8 * * ?' for daily at 8 AM)"
134+
"description": "Cron expression for scheduling (e.g., '0 0 8 * * ?' for daily at 8 AM,need 6 parameters)"
135135
},
136-
"planTemplateId": {
137-
"type": "string",
138-
"description": "ID of the plan template to execute"
139-
},
140-
"description": {
136+
"planDesc": {
141137
"type": "string",
142138
"description": "Description of what this cron task does"
143139
}
144140
},
145-
"required": ["cronName", "cronTime", "planTemplateId"]
141+
"required": ["cronName", "cronTime", "planDesc"]
146142
}
147143
""";
148144
}

0 commit comments

Comments
 (0)