Skip to main content

Module apply_patch_handler

Module apply_patch_handler 

Source
Expand description

Apply patch handler (from Codex)

Implements the apply_patch tool using the Codex-style handler pattern. Supports both freeform and JSON function call formats.

Structs§

ApplyPatchApprovalKey
Approval key for caching
ApplyPatchHandler
Apply patch handler
ApplyPatchRequest
Request for apply_patch runtime
ApplyPatchRuntime
Apply patch runtime for orchestrated execution
ApplyPatchToolArgs
Arguments for apply_patch function call
InterceptApplyPatchContext
Context for intercepting apply_patch commands

Functions§

create_apply_patch_freeform_tool
Create freeform apply_patch tool spec (for GPT-5 style models)
create_apply_patch_json_tool
Create JSON function apply_patch tool spec (for standard function calling)
intercept_apply_patch
Intercept apply_patch from shell command