Record Class MessageSendParams_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.MessageSendParams_v0_3
public record MessageSendParams_v0_3(Message_v0_3 message, MessageSendConfiguration_v0_3 configuration, Map<String,Object> metadata)
extends Record
Defines the parameters for a request to send a message to an agent. This can be used
to create a new task, continue an existing one, or restart a task.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMessageSendParams_v0_3(Message_v0_3 message, MessageSendConfiguration_v0_3 configuration, Map<String, Object> metadata) Creates an instance of aMessageSendParams_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Returns the value of theconfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageSendParams_v0_3
public MessageSendParams_v0_3(Message_v0_3 message, MessageSendConfiguration_v0_3 configuration, Map<String, Object> metadata) Creates an instance of aMessageSendParams_v0_3record class.- Parameters:
message- the value for themessagerecord componentconfiguration- the value for theconfigurationrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
check
public void check() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
metadata
-