Record Class McpSchema.InitializeResponse
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.InitializeResponse
- Enclosing class:
McpSchema
public static record McpSchema.InitializeResponse(String protocolVersion, McpSchema.ServerCapabilities capabilities, McpSchema.Implementation serverInfo, String instructions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInitializeResponse(String protocolVersion, McpSchema.ServerCapabilities capabilities, McpSchema.Implementation serverInfo) InitializeResponse(String protocolVersion, McpSchema.ServerCapabilities capabilities, McpSchema.Implementation serverInfo, String instructions) Creates an instance of aInitializeResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstructionsrecord component.Returns the value of theprotocolVersionrecord component.Returns the value of theserverInforecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitializeResponse
public InitializeResponse(String protocolVersion, McpSchema.ServerCapabilities capabilities, McpSchema.Implementation serverInfo) -
InitializeResponse
public InitializeResponse(String protocolVersion, McpSchema.ServerCapabilities capabilities, McpSchema.Implementation serverInfo, String instructions) Creates an instance of aInitializeResponserecord class.- Parameters:
protocolVersion- the value for theprotocolVersionrecord componentcapabilities- the value for thecapabilitiesrecord componentserverInfo- the value for theserverInforecord componentinstructions- the value for theinstructionsrecord 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). -
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
serverInfo
Returns the value of theserverInforecord component.- Returns:
- the value of the
serverInforecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-