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
tsfunction createApplyPatchTool(options: ApplyPatchOptions): ToolDefinition<TContext>
Parameters
| Name | Type |
|---|---|
options | ApplyPatchOptions |
Returns: ToolDefinition<TContext>
Was this page helpful?