Record Class SendMessageItem
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SendMessageItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.billable()Returns the value of thebillablerecord component.Returns the value of thedisplayPromptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prompt()Returns the value of thepromptrecord component.Returns the value of therequiredToolrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendMessageItem
public SendMessageItem(String prompt, String displayPrompt, List<Object> attachments, Boolean billable, String requiredTool, String source) Creates an instance of aSendMessageItemrecord class.- Parameters:
prompt- the value for thepromptrecord componentdisplayPrompt- the value for thedisplayPromptrecord componentattachments- the value for theattachmentsrecord componentbillable- the value for thebillablerecord componentrequiredTool- the value for therequiredToolrecord componentsource- the value for thesourcerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
displayPrompt
Returns the value of thedisplayPromptrecord component.- Returns:
- the value of the
displayPromptrecord component
-
attachments
-
billable
Returns the value of thebillablerecord component.- Returns:
- the value of the
billablerecord component
-
requiredTool
Returns the value of therequiredToolrecord component.- Returns:
- the value of the
requiredToolrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-