Table of Contents

Class DiffTools

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

Tools for creating and applying unified diff patches. Enables structured multi-location file edits via standard patch format.

[ToolPlugin("diff")]
public sealed class DiffTools
Inheritance
DiffTools
Inherited Members

Methods

ApplyPatch(string)

[KernelFunction("apply_patch")]
[ToolSafetyTier(SafetyTier.ConfirmOnce)]
public static string ApplyPatch(string editsJson)

Parameters

editsJson string

Returns

string

CreatePatch(string)

[KernelFunction("create_patch")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public static string CreatePatch(string editsJson)

Parameters

editsJson string

Returns

string