Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
An openrouter:apply_patch server tool output item. The turn halts when validation succeeds so the client can apply the patch and echo an apply_patch_call_output on the next turn.

Fields

FieldTypeRequiredDescriptionExample
CallID*string:heavy_minus_sign:N/A
ID*string:heavy_minus_sign:N/A
Operation*components.ApplyPatchCallOperation:heavy_minus_sign:The patch operation requested by an apply_patch_call. create_file and update_file carry a V4A diff; delete_file omits it.{"diff": "@@ function main() {\n+ console.log(\"hi\");\n }”,
“path”: “/src/main.ts”,
“type”: “update_file”
}
Statuscomponents.ToolCallStatus:heavy_check_mark:N/Acompleted
Typecomponents.OutputApplyPatchServerToolItemType:heavy_check_mark:N/A