21 lines
610 B
Java
21 lines
610 B
Java
package com.example.demo.domain;
|
|
|
|
import java.util.List;
|
|
|
|
public record CurrentRulesResponse(
|
|
long version,
|
|
int ruleCount,
|
|
int keywordCount,
|
|
LlmConfig llmConfig,
|
|
List<RuleSet> ruleSets
|
|
) {
|
|
public CurrentRulesResponse(long version, int ruleCount, int keywordCount, List<RuleSet> ruleSets) {
|
|
this(version, ruleCount, keywordCount, LlmConfig.defaults(), ruleSets);
|
|
}
|
|
|
|
public CurrentRulesResponse {
|
|
llmConfig = llmConfig == null ? LlmConfig.defaults() : llmConfig;
|
|
ruleSets = ruleSets == null ? List.of() : List.copyOf(ruleSets);
|
|
}
|
|
}
|