Record Class McpToolCallResult
java.lang.Object
java.lang.Record
com.codedprojects.apimapper.client.contracts.McpToolCallResult
public record McpToolCallResult(List<McpToolContent> content, com.fasterxml.jackson.databind.JsonNode structuredContent, Boolean isError)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMcpToolCallResult(List<McpToolContent> content, com.fasterxml.jackson.databind.JsonNode structuredContent, Boolean isError) Creates an instance of aMcpToolCallResultrecord 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.isError()Returns the value of theisErrorrecord component.com.fasterxml.jackson.databind.JsonNodeReturns the value of thestructuredContentrecord component.final StringtoString()Returns a string representation of this record class.toText()
-
Constructor Details
-
McpToolCallResult
public McpToolCallResult(List<McpToolContent> content, com.fasterxml.jackson.databind.JsonNode structuredContent, Boolean isError) Creates an instance of aMcpToolCallResultrecord class.- Parameters:
content- the value for thecontentrecord componentstructuredContent- the value for thestructuredContentrecord componentisError- the value for theisErrorrecord component
-
-
Method Details
-
toText
-
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). -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
structuredContent
public com.fasterxml.jackson.databind.JsonNode structuredContent()Returns the value of thestructuredContentrecord component.- Returns:
- the value of the
structuredContentrecord component
-
isError
Returns the value of theisErrorrecord component.- Returns:
- the value of the
isErrorrecord component
-