feat(tools): require reason argument for delete and git_operator tools

This commit is contained in:
asepharyana
2026-07-15 02:01:24 +07:00
parent 2af8432ce4
commit c6ab063c21
3 changed files with 27 additions and 16 deletions
+5 -1
View File
@@ -30,9 +30,13 @@ impl Tool for GitOperator {
"type": "array",
"items": {"type": "string"},
"description": "Arguments for the git subcommand"
},
"reason": {
"type": "string",
"description": "Explain why this git operation is needed (>= 8 chars)"
}
},
"required": ["operation", "args"]
"required": ["operation", "args", "reason"]
})
}