Record Class AgentCapabilities_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.AgentCapabilities_v0_3
public record AgentCapabilities_v0_3(boolean streaming, boolean pushNotifications, boolean stateTransitionHistory, List<AgentExtension_v0_3> extensions)
extends Record
Defines optional capabilities supported by an agent.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgentCapabilities_v0_3(boolean streaming, boolean pushNotifications, boolean stateTransitionHistory, List<AgentExtension_v0_3> extensions) Creates an instance of aAgentCapabilities_v0_3record 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_v0_3
public AgentCapabilities_v0_3(boolean streaming, boolean pushNotifications, boolean stateTransitionHistory, List<AgentExtension_v0_3> extensions) Creates an instance of aAgentCapabilities_v0_3record 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-