update_file variant of an apply_patch_call.operation. Carries a V4A diff describing edits to an existing file.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ApplyPatchUpdateFileOperation type definition
update_file variant of an apply_patch_call.operation. Carries a V4A diff describing edits to an existing file.
import { ApplyPatchUpdateFileOperation } from "@openrouter/sdk/models";
let value: ApplyPatchUpdateFileOperation = {
diff: "@@ function main() {\n+ console.log(\"hi\");\n }",
path: "/src/main.ts",
type: "update_file",
};
| Field | Type | Required | Description |
|---|---|---|---|
diff | string | :heavy_check_mark: | N/A |
path | string | :heavy_check_mark: | N/A |
type | ”update_file” | :heavy_check_mark: | N/A |