Skip to content

createApplyPatchTool

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/agent-core/src/tools/apply-patch.tool.ts

Create an apply_patch tool definition.

This tool accepts a patch in the Codex apply_patch format and applies it to the filesystem. It supports creating, updating, and deleting files in a single patch, with fuzzy context matching for reliable hunk application.

Signature

ts
function createApplyPatchTool(options: ApplyPatchOptions): ToolDefinition<TContext>

Parameters

NameType
optionsApplyPatchOptions

Returns: ToolDefinition<TContext>

Was this page helpful?

Download as PDF