Skip to main content
The Python 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
call_idOptional[str]:heavy_minus_sign:N/A
idOptional[str]:heavy_minus_sign:N/A
operationOptional[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