Package com.github.copilot.sdk.generated
Record Class ElicitationRequestedEvent.ElicitationRequestedEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.ElicitationRequestedEvent.ElicitationRequestedEventData
- Enclosing class:
- ElicitationRequestedEvent
public static record ElicitationRequestedEvent.ElicitationRequestedEventData(String requestId, String toolCallId, String elicitationSource, String message, ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataMode mode, ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataRequestedSchema requestedSchema, String url)
extends Record
Data payload for
ElicitationRequestedEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumElicitation mode; "form" for structured input, "url" for browser-based.static final recordElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataRequestedSchemaJSON Schema describing the form fields to present to the user (form mode only) -
Constructor Summary
ConstructorsConstructorDescriptionElicitationRequestedEventData(String requestId, String toolCallId, String elicitationSource, String message, ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataMode mode, ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataRequestedSchema requestedSchema, String url) Creates an instance of aElicitationRequestedEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelicitationSourcerecord 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.mode()Returns the value of themoderecord component.ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataRequestedSchemaReturns the value of therequestedSchemarecord component.Returns the value of therequestIdrecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ElicitationRequestedEventData
public ElicitationRequestedEventData(String requestId, String toolCallId, String elicitationSource, String message, ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataMode mode, ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataRequestedSchema requestedSchema, String url) Creates an instance of aElicitationRequestedEventDatarecord class.- Parameters:
requestId- the value for therequestIdrecord componenttoolCallId- the value for thetoolCallIdrecord componentelicitationSource- the value for theelicitationSourcerecord componentmessage- the value for themessagerecord componentmode- the value for themoderecord componentrequestedSchema- the value for therequestedSchemarecord componenturl- the value for theurlrecord 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
-
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
elicitationSource
Returns the value of theelicitationSourcerecord component.- Returns:
- the value of the
elicitationSourcerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
mode
public ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataMode mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
requestedSchema
public ElicitationRequestedEvent.ElicitationRequestedEventData.ElicitationRequestedEventDataRequestedSchema requestedSchema()Returns the value of therequestedSchemarecord component.- Returns:
- the value of the
requestedSchemarecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-