Package io.a2a.spec
Record Class AgentCapabilities
java.lang.Object
java.lang.Record
io.a2a.spec.AgentCapabilities
public record AgentCapabilities(boolean streaming, boolean pushNotifications, boolean stateTransitionHistory, List<AgentExtension> extensions)
extends Record
An agent's capabilities.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgentCapabilities(boolean streaming, boolean pushNotifications, boolean stateTransitionHistory, List<AgentExtension> extensions) Creates an instance of aAgentCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepushNotificationsrecord component.booleanReturns the value of thestateTransitionHistoryrecord component.booleanReturns the value of thestreamingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentCapabilities
public AgentCapabilities(boolean streaming, boolean pushNotifications, boolean stateTransitionHistory, List<AgentExtension> extensions) Creates an instance of aAgentCapabilitiesrecord class.- Parameters:
streaming- the value for thestreamingrecord componentpushNotifications- the value for thepushNotificationsrecord componentstateTransitionHistory- the value for thestateTransitionHistoryrecord componentextensions- the value for theextensionsrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
streaming
public boolean streaming()Returns the value of thestreamingrecord component.- Returns:
- the value of the
streamingrecord component
-
pushNotifications
public boolean pushNotifications()Returns the value of thepushNotificationsrecord component.- Returns:
- the value of the
pushNotificationsrecord component
-
stateTransitionHistory
public boolean stateTransitionHistory()Returns the value of thestateTransitionHistoryrecord component.- Returns:
- the value of the
stateTransitionHistoryrecord component
-
extensions
Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-