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.

Based on openai/codex tool handler patterns (Apache-2.0). Copyright 2025 OpenAI. See the repository THIRD-PARTY-NOTICES file for full attribution.

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

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)