apply_patch_call. create_file and update_file carry a V4A diff; delete_file omits it.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ApplyPatchCallOperation type definition
apply_patch_call. create_file and update_file carry a V4A diff; delete_file omits it.
models.ApplyPatchCreateFileOperationconst value: models.ApplyPatchCreateFileOperation = {
diff: "@@ function main() {\n+ console.log(\"hi\");\n }",
path: "/src/main.ts",
type: "create_file",
};
models.ApplyPatchDeleteFileOperationconst value: models.ApplyPatchDeleteFileOperation = {
path: "/src/main.ts",
type: "delete_file",
};
models.ApplyPatchUpdateFileOperationconst value: models.ApplyPatchUpdateFileOperation = {
diff: "@@ function main() {\n+ console.log(\"hi\");\n }",
path: "/src/main.ts",
type: "update_file",
};