Skip to content

Commit

Permalink
Add simplified constructor to EvaluationRequest
Browse files Browse the repository at this point in the history
- Add new constructor EvaluationRequest(String userText, String responseContent)
- New constructor uses Collections.emptyList() for dataList
  • Loading branch information
habuma authored and Mark Pollack committed Sep 19, 2024
1 parent 9910ccc commit 62feb38
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.springframework.ai.model.Content;

import java.util.Collections;
import java.util.List;
import java.util.Objects;

Expand All @@ -21,6 +22,10 @@ public class EvaluationRequest {

private final String responseContent;

public EvaluationRequest(String userText, String responseContent) {
this(userText, Collections.emptyList(), responseContent);
}

public EvaluationRequest(String userText, List<Content> dataList, String responseContent) {
this.userText = userText;
this.dataList = dataList;
Expand Down

0 comments on commit 62feb38

Please sign in to comment.