11package org .springframework .ai .evaluation ;
22
3- import org .springframework .ai .chat .model .ChatResponse ;
43import org .springframework .ai .model .Content ;
54
65import java .util .List ;
@@ -20,12 +19,12 @@ public class EvaluationRequest {
2019
2120 private final List <Content > dataList ;
2221
23- private final ChatResponse chatResponse ;
22+ private final String responseContent ;
2423
25- public EvaluationRequest (String userText , List <Content > dataList , ChatResponse chatResponse ) {
24+ public EvaluationRequest (String userText , List <Content > dataList , String responseContent ) {
2625 this .userText = userText ;
2726 this .dataList = dataList ;
28- this .chatResponse = chatResponse ;
27+ this .responseContent = responseContent ;
2928 }
3029
3130 public String getUserText () {
@@ -36,14 +35,14 @@ public List<Content> getDataList() {
3635 return dataList ;
3736 }
3837
39- public ChatResponse getChatResponse () {
40- return chatResponse ;
38+ public String getResponseContent () {
39+ return responseContent ;
4140 }
4241
4342 @ Override
4443 public String toString () {
4544 return "EvaluationRequest{" + "userText='" + userText + '\'' + ", dataList=" + dataList + ", chatResponse="
46- + chatResponse + '}' ;
45+ + responseContent + '}' ;
4746 }
4847
4948 @ Override
@@ -53,12 +52,12 @@ public boolean equals(Object o) {
5352 if (!(o instanceof EvaluationRequest that ))
5453 return false ;
5554 return Objects .equals (userText , that .userText ) && Objects .equals (dataList , that .dataList )
56- && Objects .equals (chatResponse , that .chatResponse );
55+ && Objects .equals (responseContent , that .responseContent );
5756 }
5857
5958 @ Override
6059 public int hashCode () {
61- return Objects .hash (userText , dataList , chatResponse );
60+ return Objects .hash (userText , dataList , responseContent );
6261 }
6362
6463}
0 commit comments