AgentReference Class
- java.
lang. Object - com.
azure. ai. agents. models. AgentReference
- com.
Implements
public final class AgentReference
implements JsonSerializable<AgentReference>
The AgentReference model.
Constructor Summary
| Constructor | Description |
|---|---|
| AgentReference(String name) |
Creates an instance of Agent |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
| String |
getName()
Get the name property: The name of the agent. |
| String |
getType()
Get the type property: The type property. |
| String |
getVersion()
Get the version property: The version identifier of the agent. |
|
Agent |
setVersion(String version)
Set the version property: The version identifier of the agent. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AgentReference
public AgentReference(String name)
Creates an instance of AgentReference class.
Parameters:
Method Details
fromJson
public static AgentReference fromJson(JsonReader jsonReader)
Reads an instance of AgentReference from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: The name of the agent.
Returns:
getType
public String getType()
Get the type property: The type property.
Returns:
getVersion
public String getVersion()
Get the version property: The version identifier of the agent.
Returns:
setVersion
public AgentReference setVersion(String version)
Set the version property: The version identifier of the agent.
Parameters:
Returns: