Record Class TaskQueryParams_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.TaskQueryParams_v0_3
- Record Components:
id- the ID for the task to be queriedhistoryLength- the maximum number of items of history for the task to include in the responsemetadata- additional properties
-
Constructor Summary
ConstructorsConstructorDescriptionTaskQueryParams_v0_3(String id, int historyLength) TaskQueryParams_v0_3(String id, int historyLength, @Nullable Map<String, Object> metadata) Creates an instance of aTaskQueryParams_v0_3record 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.intReturns the value of thehistoryLengthrecord component.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskQueryParams_v0_3
Creates an instance of aTaskQueryParams_v0_3record class.- Parameters:
id- the value for theidrecord componenthistoryLength- the value for thehistoryLengthrecord componentmetadata- the value for themetadatarecord component
-
TaskQueryParams_v0_3
-
TaskQueryParams_v0_3
-
-
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. -
id
-
historyLength
public int historyLength()Returns the value of thehistoryLengthrecord component.- Returns:
- the value of the
historyLengthrecord component
-
metadata
-