FunctionName Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.FunctionName

Implements

public final class FunctionName
implements JsonSerializable<FunctionName>

The function name that will be used, if using the `function` tool.

Constructor Summary

Constructor Description
FunctionName(String name)

Creates an instance of FunctionName class.

Method Summary

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

Reads an instance of FunctionName from the JsonReader.

String getName()

Get the name property: The name of the function to call.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

FunctionName

public FunctionName(String name)

Creates an instance of FunctionName class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static FunctionName fromJson(JsonReader jsonReader)

Reads an instance of FunctionName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: The name of the function to call.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to