Package dev.tachyonmcp.api.server.domain
Record Class TaskResult.Failed
java.lang.Object
java.lang.Record
dev.tachyonmcp.api.server.domain.TaskResult.Failed
- All Implemented Interfaces:
HasMeta,TaskResult
- Enclosing interface:
TaskResult
public static record TaskResult.Failed(List<ContentBlock> content, @Nullable Object structuredContent, @Nullable Map<String,Object> meta, @Nullable ServerError protocolError)
extends Record
implements TaskResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.tachyonmcp.api.server.domain.TaskResult
TaskResult.Completed, TaskResult.Failed -
Constructor Summary
ConstructorsConstructorDescriptionFailed(List<ContentBlock> content, @Nullable Object structuredContent, @Nullable Map<String, Object> meta) Failed(List<ContentBlock> content, @Nullable Object structuredContent, @Nullable Map<String, Object> meta, @Nullable ServerError protocolError) Creates an instance of aFailedrecord 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.meta()Returns the value of themetarecord component.@Nullable ServerErrorReturns the value of theprotocolErrorrecord component.@Nullable ObjectReturns the value of thestructuredContentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Failed
-
Failed
public Failed(List<ContentBlock> content, @Nullable Object structuredContent, @Nullable Map<String, Object> meta, @Nullable ServerError protocolError) Creates an instance of aFailedrecord class.- Parameters:
content- the value for thecontentrecord componentstructuredContent- the value for thestructuredContentrecord componentmeta- the value for themetarecord componentprotocolError- the value for theprotocolErrorrecord component
-
Failed
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thestructuredContentrecord component.- Returns:
- the value of the
structuredContentrecord component
-
meta
Returns the value of themetarecord component. -
protocolError
Returns the value of theprotocolErrorrecord component.- Returns:
- the value of the
protocolErrorrecord component
-