Package com.tnsai.agents.variant
Record Class TaskComplexityAnalyzer.ComplexityResult
java.lang.Object
java.lang.Record
com.tnsai.agents.variant.TaskComplexityAnalyzer.ComplexityResult
- Enclosing class:
TaskComplexityAnalyzer
public static record TaskComplexityAnalyzer.ComplexityResult(double score, TaskComplexityAnalyzer.ComplexityLevel level, String reasoning)
extends Record
Complexity analysis result.
-
Constructor Summary
ConstructorsConstructorDescriptionComplexityResult(double score, TaskComplexityAnalyzer.ComplexityLevel level, String reasoning) Creates an instance of aComplexityResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns true if this is a complex task.booleanisSimple()Returns true if this is a simple task.level()Returns the value of thelevelrecord component.Returns the value of thereasoningrecord component.doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComplexityResult
public ComplexityResult(double score, TaskComplexityAnalyzer.ComplexityLevel level, String reasoning) Creates an instance of aComplexityResultrecord class.- Parameters:
score- the value for thescorerecord componentlevel- the value for thelevelrecord componentreasoning- the value for thereasoningrecord component
-
-
Method Details
-
isSimple
public boolean isSimple()Returns true if this is a simple task. -
isComplex
public boolean isComplex()Returns true if this is a complex task. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
reasoning
Returns the value of thereasoningrecord component.- Returns:
- the value of the
reasoningrecord component
-