ProtocolVersionRecord Class
- java.
lang. Object - com.
azure. ai. agents. models. ProtocolVersionRecord
- com.
Implements
public final class ProtocolVersionRecord
implements JsonSerializable<ProtocolVersionRecord>
A record mapping for a single protocol and its version.
Constructor Summary
| Constructor | Description |
|---|---|
| ProtocolVersionRecord(AgentEndpointProtocol protocol, String version) |
Creates an instance of Protocol |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Protocol |
fromJson(JsonReader jsonReader)
Reads an instance of Protocol |
|
Agent |
getProtocol()
Get the protocol property: The protocol type. |
| String |
getVersion()
Get the version property: The version string for the protocol, e. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ProtocolVersionRecord
public ProtocolVersionRecord(AgentEndpointProtocol protocol, String version)
Creates an instance of ProtocolVersionRecord class.
Parameters:
Method Details
fromJson
public static ProtocolVersionRecord fromJson(JsonReader jsonReader)
Reads an instance of ProtocolVersionRecord from the JsonReader.
Parameters:
Returns:
Throws:
getProtocol
public AgentEndpointProtocol getProtocol()
Get the protocol property: The protocol type.
Returns:
getVersion
public String getVersion()
Get the version property: The version string for the protocol, e.g. 'v0.1.1'.
Returns: