Share via


RequiredAction Class

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

Implements

public class RequiredAction
implements JsonSerializable<RequiredAction>

An abstract representation of a required action for an agent thread run to continue.

Constructor Summary

Modifier Constructor Description
protected RequiredAction()

Creates an instance of RequiredAction class.

Method Summary

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

Reads an instance of RequiredAction from the JsonReader.

String getType()

Get the type property: The object type.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

RequiredAction

protected RequiredAction()

Creates an instance of RequiredAction class.

Method Details

fromJson

public static RequiredAction fromJson(JsonReader jsonReader)

Reads an instance of RequiredAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getType

public String getType()

Get the type property: The object type.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to