Record Class McpSchema.Tool
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.Tool
- Enclosing class:
McpSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.Returns the value of thedescriptionrecord 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 theinputSchemarecord component.name()Returns the value of thenamerecord component.Returns the value of theoutputSchemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tool
public Tool(String name, String description, Object inputSchema, McpSchema.ToolAnnotations annotations) -
Tool
public Tool(String name, String description, Object inputSchema, McpSchema.ToolAnnotations annotations, Object outputSchema) Creates an instance of aToolrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentinputSchema- the value for theinputSchemarecord componentannotations- the value for theannotationsrecord componentoutputSchema- the value for theoutputSchemarecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
inputSchema
Returns the value of theinputSchemarecord component.- Returns:
- the value of the
inputSchemarecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
outputSchema
Returns the value of theoutputSchemarecord component.- Returns:
- the value of the
outputSchemarecord component
-