Record Class McpSchema.Content
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.Content
- Enclosing class:
McpSchema
public static record McpSchema.Content(String type, String text, McpSchema.Annotations annotations)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.static McpSchema.Contentstatic McpSchema.Contenttext(String text, McpSchema.Annotations annotations) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Content
-
Content
Creates an instance of aContentrecord class.- Parameters:
type- the value for thetyperecord componenttext- the value for thetextrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
text
-
text
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-