Package com.github.copilot.sdk.generated
Record Class UserInputRequestedEvent.UserInputRequestedEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.UserInputRequestedEvent.UserInputRequestedEventData
- Enclosing class:
- UserInputRequestedEvent
public static record UserInputRequestedEvent.UserInputRequestedEventData(String requestId, String question, List<String> choices, Boolean allowFreeform, String toolCallId)
extends Record
Data payload for
UserInputRequestedEvent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowFreeformrecord component.choices()Returns the value of thechoicesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.question()Returns the value of thequestionrecord component.Returns the value of therequestIdrecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserInputRequestedEventData
public UserInputRequestedEventData(String requestId, String question, List<String> choices, Boolean allowFreeform, String toolCallId) Creates an instance of aUserInputRequestedEventDatarecord class.- Parameters:
requestId- the value for therequestIdrecord componentquestion- the value for thequestionrecord componentchoices- the value for thechoicesrecord componentallowFreeform- the value for theallowFreeformrecord componenttoolCallId- the value for thetoolCallIdrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
question
Returns the value of thequestionrecord component.- Returns:
- the value of the
questionrecord component
-
choices
Returns the value of thechoicesrecord component.- Returns:
- the value of the
choicesrecord component
-
allowFreeform
Returns the value of theallowFreeformrecord component.- Returns:
- the value of the
allowFreeformrecord component
-
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-