apply_patch apply_patch ¶ Apply-patch tool — apply unified diff patches to files. Classes¶ ApplyPatchTool ¶ Bases: BaseTool Apply a unified diff patch to a file.