Package io.modelcontextprotocol.spec
Record Class McpSchema.ElicitUrlRequest
java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.ElicitUrlRequest
- Record Components:
message- The message to present to the userurl- The URL the user must navigate to.elicitationId- The elicitation ID of the elicitations reques.tmeta- See specification for notes on _meta usageNote:
message,urlandelicitationIdare required by the MCP specification. Deserialization accepts missing values and substitutes defaults to avoid breaking existing integrations that may omit these fields.
- All Implemented Interfaces:
McpSchema.ElicitRequest,McpSchema.Meta,McpSchema.Request
- Enclosing class:
- McpSchema
public static record McpSchema.ElicitUrlRequest(String message, String url, String elicitationId, Map<String,Object> meta)
extends Record
implements McpSchema.ElicitRequest
A request from the server to elicit additional information from the user out of
band, using
url mode.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelicitationIdrecord 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.meta()Returns the value of themetarecord component.mode()final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.modelcontextprotocol.spec.McpSchema.Request
progressToken
-
Field Details
-
MODE
- See Also:
-
-
Constructor Details
-
ElicitUrlRequest
Creates an instance of aElicitUrlRequestrecord class.- Parameters:
message- the value for themessagerecord componenturl- the value for theurlrecord componentelicitationId- the value for theelicitationIdrecord componentmeta- the value for themetarecord component
-
-
Method Details
-
mode
- Specified by:
modein interfaceMcpSchema.ElicitRequest
-
builder
public static McpSchema.ElicitUrlRequest.Builder builder(String message, String url, String elicitationId) -
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). -
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceMcpSchema.ElicitRequest- Returns:
- the value of the
messagerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
elicitationId
Returns the value of theelicitationIdrecord component.- Returns:
- the value of the
elicitationIdrecord component
-
meta
Returns the value of themetarecord component.- Specified by:
metain interfaceMcpSchema.ElicitRequest- Specified by:
metain interfaceMcpSchema.Meta- Returns:
- the value of the
metarecord component - See Also:
-
- Specification for notes on _meta usage
-