ApplyPatchTool
このコンテンツはまだ日本語訳がありません。
type ApplyPatchTool = object;Properties
Section titled “Properties”customDataExtractor?
Section titled “customDataExtractor?”optional customDataExtractor?: ApplyPatchToolCustomDataExtractor;Optional callback that attaches SDK-only custom data to the emitted tool output item.
editor
Section titled “editor”editor: Editor;Diff applier invoked when the tool is called.
name: string;Public name exposed to the model. Defaults to apply_patch.
needsApproval
Section titled “needsApproval”needsApproval: ApplyPatchApprovalFunction;Predicate determining whether this apply_patch operation requires approval.
onApproval?
Section titled “onApproval?”optional onApproval?: ApplyPatchOnApprovalFunction;Optional handler to auto-approve or reject when approval is required.
type: "apply_patch";