Record Class McpSchema.CallToolResponse
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.CallToolResponse
- Enclosing class:
McpSchema
public static record McpSchema.CallToolResponse(List<McpSchema.Content> content, boolean isError, com.google.gson.JsonElement structuredContent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCallToolResponse(List<McpSchema.Content> content) CallToolResponse(List<McpSchema.Content> content, boolean isError) CallToolResponse(List<McpSchema.Content> content, boolean isError, com.google.gson.JsonElement structuredContent) Creates an instance of aCallToolResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisError()Returns the value of theisErrorrecord component.com.google.gson.JsonElementReturns the value of thestructuredContentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallToolResponse
-
CallToolResponse
-
CallToolResponse
public CallToolResponse(List<McpSchema.Content> content, boolean isError, com.google.gson.JsonElement structuredContent) Creates an instance of aCallToolResponserecord class.- Parameters:
content- the value for thecontentrecord componentisError- the value for theisErrorrecord componentstructuredContent- the value for thestructuredContentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
isError
public boolean isError()Returns the value of theisErrorrecord component.- Returns:
- the value of the
isErrorrecord component
-
structuredContent
public com.google.gson.JsonElement structuredContent()Returns the value of thestructuredContentrecord component.- Returns:
- the value of the
structuredContentrecord component
-