Reword the apply_patch tool description (#33680)

GitOrigin-RevId: 4d44f0c61578cbce04a4f6dffdba4833c39f4491
This commit is contained in:
yongjun-oai
2026-07-16 19:49:32 +00:00
committed by copyberry
parent 78ba047bda
commit f737605606
2 changed files with 2 additions and 2 deletions
@@ -17,7 +17,7 @@ pub fn create_apply_patch_freeform_tool(include_environment_id: bool) -> ToolSpe
};
ToolSpec::Freeform(FreeformTool {
name: "apply_patch".to_string(),
description: "Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.".to_string(),
description: "The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON.".to_string(),
format: FreeformToolFormat {
r#type: "grammar".to_string(),
syntax: "lark".to_string(),
@@ -8,7 +8,7 @@ fn create_apply_patch_freeform_tool_matches_expected_spec() {
ToolSpec::Freeform(FreeformTool {
name: "apply_patch".to_string(),
description:
"Use the `apply_patch` tool to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON."
"The `apply_patch` tool can be used to edit files. This is a FREEFORM tool, so do not wrap the patch in JSON."
.to_string(),
format: FreeformToolFormat {
r#type: "grammar".to_string(),