Package io.modelcontextprotocol.spec
Record Class McpSchema.ElicitRequest
java.lang.Object
java.lang.Record
io.modelcontextprotocol.spec.McpSchema.ElicitRequest
- Record Components:
message- The message to present to the userrequestedSchema- A restricted subset of JSON Schema. Only top-level properties are allowed, without nestingmeta- See specification for notes on _meta usage
- All Implemented Interfaces:
McpSchema.Request
- Enclosing class:
- McpSchema
public static record McpSchema.ElicitRequest(String message, Map<String,Object> requestedSchema, Map<String,Object> meta)
extends Record
implements McpSchema.Request
A request from the server to elicit additional information from the user via the
client.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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.Returns the value of therequestedSchemarecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.modelcontextprotocol.spec.McpSchema.Request
progressToken
-
Constructor Details
-
ElicitRequest
-
ElicitRequest
Creates an instance of aElicitRequestrecord class.- Parameters:
message- the value for themessagerecord componentrequestedSchema- the value for therequestedSchemarecord componentmeta- the value for themetarecord component
-
-
Method Details
-
builder
-
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.- Returns:
- the value of the
messagerecord component
-
requestedSchema
Returns the value of therequestedSchemarecord component.- Returns:
- the value of the
requestedSchemarecord component
-
meta
Returns the value of themetarecord component.- Specified by:
metain interfaceMcpSchema.Request- Returns:
- the value of the
metarecord component
-