OutputApplyPatchServerToolItem - Go SDK

OutputApplyPatchServerToolItem type definition

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*stringN/A
ID*stringN/A
Operation*components.ApplyPatchCallOperationThe 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✔️N/Acompleted
Typecomponents.OutputApplyPatchServerToolItemType✔️N/A