ApplyPatchToolParameter Class

public final class ApplyPatchToolParameter
extends Tool

Apply patch tool Allows the assistant to create, delete, or update files using unified diffs.

Constructor Summary

Constructor Description
ApplyPatchToolParameter()

Creates an instance of ApplyPatchToolParameter class.

Method Summary

Modifier and Type Method and Description
static ApplyPatchToolParameter fromJson(JsonReader jsonReader)

Reads an instance of ApplyPatchToolParameter from the JsonReader.

ToolType getType()

Get the type property: The type property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from Tool

Methods inherited from java.lang.Object

Constructor Details

ApplyPatchToolParameter

public ApplyPatchToolParameter()

Creates an instance of ApplyPatchToolParameter class.

Method Details

fromJson

public static ApplyPatchToolParameter fromJson(JsonReader jsonReader)

Reads an instance of ApplyPatchToolParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ApplyPatchToolParameter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ApplyPatchToolParameter.

getType

public ToolType getType()

Get the type property: The type property.

Overrides:

ApplyPatchToolParameter.getType()

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplyPatchToolParameter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to