Skip to content

ApplyPatchCallItem

type ApplyPatchCallItem = object;
callId: string;
optional id: string;

An ID to identify the item. This is optional by default. If a model provider absolutely requires this field, it will be validated on the model level.

operation:
| {
diff: string;
path: string;
type: "create_file";
}
| {
diff: string;
path: string;
type: "update_file";
}
| {
path: string;
type: "delete_file";
} = ApplyPatchOperation;
optional providerData: Record<string, any>;

Additional optional provider specific data. Used for custom functionality or model provider specific fields.

status: "in_progress" | "completed";
type: "apply_patch_call";