Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
A native apply_patch_call output item matching OpenAI’s Responses API shape. Emitted when the client requested the apply_patch shorthand.

Fields

FieldTypeRequiredDescriptionExample
call_idstr:heavy_check_mark:N/A
idstr:heavy_check_mark:N/A
operationcomponents.ApplyPatchCallOperation:heavy_check_mark: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.ApplyPatchCallStatus:heavy_check_mark:Lifecycle state of an apply_patch_call output item.completed
typecomponents.OutputApplyPatchCallItemType:heavy_check_mark:N/A