mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Reword the apply_patch tool description (#33680)
GitOrigin-RevId: 4d44f0c61578cbce04a4f6dffdba4833c39f4491
This commit is contained in:
1 parent
78ba047bda
commit
f737605606
2 files changed
+2
-2
No files matched your search
@@ -17,7 +17,7 @@ pub fn create_apply_patch_freeform_tool(include_environment_id: bool) -> ToolSpe
|
|||||||
};
|
};
|
||||||
ToolSpec::Freeform(FreeformTool {
|
ToolSpec::Freeform(FreeformTool {
|
||||||
name: "apply_patch".to_string(),
|
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 {
|
format: FreeformToolFormat {
|
||||||
r#type: "grammar".to_string(),
|
r#type: "grammar".to_string(),
|
||||||
syntax: "lark".to_string(),
|
syntax: "lark".to_string(),
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ fn create_apply_patch_freeform_tool_matches_expected_spec() {
|
|||||||
ToolSpec::Freeform(FreeformTool {
|
ToolSpec::Freeform(FreeformTool {
|
||||||
name: "apply_patch".to_string(),
|
name: "apply_patch".to_string(),
|
||||||
description:
|
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(),
|
.to_string(),
|
||||||
format: FreeformToolFormat {
|
format: FreeformToolFormat {
|
||||||
r#type: "grammar".to_string(),
|
r#type: "grammar".to_string(),
|
||||||
|
|||||||
Reference in new issue
Block a user