AgentDefinition Class

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

Implements

public class AgentDefinition
implements JsonSerializable<AgentDefinition>

The AgentDefinition model.

Constructor Summary

Constructor Description
AgentDefinition()

Creates an instance of AgentDefinition class.

Method Summary

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

Reads an instance of AgentDefinition from the JsonReader.

AgentKind getKind()

Get the kind property: The kind property.

RaiConfig getRaiConfig()

Get the raiConfig property: Configuration for Responsible AI (RAI) content filtering and safety features.

AgentDefinition setRaiConfig(RaiConfig raiConfig)

Set the raiConfig property: Configuration for Responsible AI (RAI) content filtering and safety features.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AgentDefinition

public AgentDefinition()

Creates an instance of AgentDefinition class.

Method Details

fromJson

public static AgentDefinition fromJson(JsonReader jsonReader)

Reads an instance of AgentDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getKind

public AgentKind getKind()

Get the kind property: The kind property.

Returns:

the kind value.

getRaiConfig

public RaiConfig getRaiConfig()

Get the raiConfig property: Configuration for Responsible AI (RAI) content filtering and safety features.

Returns:

the raiConfig value.

setRaiConfig

public AgentDefinition setRaiConfig(RaiConfig raiConfig)

Set the raiConfig property: Configuration for Responsible AI (RAI) content filtering and safety features.

Parameters:

raiConfig - the raiConfig value to set.

Returns:

the AgentDefinition object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to