Skip to content

Commit 2e17b3a

Browse files
committed
refactor(plan): remove UPDATE action from PlanManagementTool
Simplifies schema by eliminating UPDATE action and clarifying usage of COMPLETE_STEP for progress updates.
1 parent a3d0400 commit 2e17b3a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/tool/impl/PlanManagementTool.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ data class PlanManagementParams(
2323
object PlanManagementSchema : DeclarativeToolSchema(
2424
description = "Manage task plans for complex multi-step work.",
2525
properties = mapOf(
26-
"action" to string(description = "Action: CREATE, UPDATE, COMPLETE_STEP, FAIL_STEP, VIEW", required = true,
27-
enum = listOf("CREATE", "UPDATE", "COMPLETE_STEP", "FAIL_STEP", "VIEW")),
28-
"planMarkdown" to string(description = "Plan content in markdown format", required = false),
29-
"taskIndex" to string(description = "1-based task index", required = false),
30-
"stepIndex" to string(description = "1-based step index", required = false)
26+
"action" to string(description = "Action: CREATE (new plan), COMPLETE_STEP (mark step done), FAIL_STEP (mark step failed), VIEW (show plan). Use COMPLETE_STEP to update progress - do NOT resend the full plan.", required = true,
27+
enum = listOf("CREATE", "COMPLETE_STEP", "FAIL_STEP", "VIEW")),
28+
"planMarkdown" to string(description = "Plan content in markdown format (only for CREATE)", required = false),
29+
"taskIndex" to string(description = "1-based task index (for COMPLETE_STEP/FAIL_STEP)", required = false),
30+
"stepIndex" to string(description = "1-based step index (for COMPLETE_STEP/FAIL_STEP)", required = false)
3131
)
3232
) {
3333
override fun getExampleUsage(toolName: String): String =
@@ -165,11 +165,11 @@ class PlanManagementTool(
165165
166166
Actions:
167167
- CREATE: Create a new plan from markdown (planMarkdown required)
168-
- UPDATE: Update existing plan with new markdown
169168
- COMPLETE_STEP: Mark a step as completed (taskIndex and stepIndex required, 1-based)
170169
- FAIL_STEP: Mark a step as failed
171170
- VIEW: View current plan status
172171
172+
IMPORTANT: Use COMPLETE_STEP to mark progress. Do NOT resend the full plan markdown to update progress.
173173
Use for complex tasks (3+ steps). Skip for simple one-step tasks.
174174
""".trimIndent()
175175

0 commit comments

Comments
 (0)