Package kimaira.agentic.agent
Record Class EvaluatorAgent.EvaluationResponse
java.lang.Object
java.lang.Record
kimaira.agentic.agent.EvaluatorAgent.EvaluationResponse
- Record Components:
evaluation- The evaluation result (PASS, NEEDS_IMPROVEMENT, or FAIL)feedback- Detailed feedback for improvement
- Enclosing class:
EvaluatorAgent
public static record EvaluatorAgent.EvaluationResponse(kimaira.agentic.data.transfer.messaging.Evaluation evaluation, String feedback)
extends Record
Represents an evaluation response. Contains the evaluation result and
detailed feedback.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluationResponse(kimaira.agentic.data.transfer.messaging.Evaluation evaluation, String feedback) Creates an instance of aEvaluationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.kimaira.agentic.data.transfer.messaging.EvaluationReturns the value of theevaluationrecord component.feedback()Returns the value of thefeedbackrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluationResponse
public EvaluationResponse(kimaira.agentic.data.transfer.messaging.Evaluation evaluation, String feedback) Creates an instance of aEvaluationResponserecord class.- Parameters:
evaluation- the value for theevaluationrecord componentfeedback- the value for thefeedbackrecord component
-
-
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). -
evaluation
public kimaira.agentic.data.transfer.messaging.Evaluation evaluation()Returns the value of theevaluationrecord component.- Returns:
- the value of the
evaluationrecord component
-
feedback
Returns the value of thefeedbackrecord component.- Returns:
- the value of the
feedbackrecord component
-