Package org.a2aproject.sdk.spec
Record Class Legacy_0_3_AgentInterface
java.lang.Object
java.lang.Record
org.a2aproject.sdk.spec.Legacy_0_3_AgentInterface
- Record Components:
transport- the transport protocol (e.g., "JSONRPC", "GRPC", "HTTP+JSON")url- the endpoint URL
A legacy (v0.3) representation of an agent interface, using the v0.3 field names
(
transport and url) for backward compatibility with older clients.
When included in the AgentCard.additionalInterfaces() field, this record
serializes with the JSON shape expected by v0.3 clients:
{"transport": "GRPC", "url": "http://localhost:9999"}
-
Constructor Summary
ConstructorsConstructorDescriptionLegacy_0_3_AgentInterface(String transport, String url) Creates an instance of aLegacy_0_3_AgentInterfacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
transport
Returns the value of thetransportrecord component.- Returns:
- the value of the
transportrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-