McpToolRequireApproval Class

  • java.lang.Object
    • com.azure.ai.agents.models.McpToolRequireApproval

Implements

public final class McpToolRequireApproval
implements JsonSerializable<McpToolRequireApproval>

The McpToolRequireApproval model.

Constructor Summary

Constructor Description
McpToolRequireApproval()

Creates an instance of McpToolRequireApproval class.

Method Summary

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

Reads an instance of McpToolRequireApproval from the JsonReader.

McpToolFilter getAlways()

Get the always property: The always property.

McpToolFilter getNever()

Get the never property: The never property.

McpToolRequireApproval setAlways(McpToolFilter always)

Set the always property: The always property.

McpToolRequireApproval setNever(McpToolFilter never)

Set the never property: The never property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

McpToolRequireApproval

public McpToolRequireApproval()

Creates an instance of McpToolRequireApproval class.

Method Details

fromJson

public static McpToolRequireApproval fromJson(JsonReader jsonReader)

Reads an instance of McpToolRequireApproval from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of McpToolRequireApproval 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 McpToolRequireApproval.

getAlways

public McpToolFilter getAlways()

Get the always property: The always property.

Returns:

the always value.

getNever

public McpToolFilter getNever()

Get the never property: The never property.

Returns:

the never value.

setAlways

public McpToolRequireApproval setAlways(McpToolFilter always)

Set the always property: The always property.

Parameters:

always - the always value to set.

Returns:

the McpToolRequireApproval object itself.

setNever

public McpToolRequireApproval setNever(McpToolFilter never)

Set the never property: The never property.

Parameters:

never - the never value to set.

Returns:

the McpToolRequireApproval object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to