Files
live-call-asr-monitor/src/main/java/com/example/demo/domain/SaveRuleResponse.java

29 lines
801 B
Java

package com.example.demo.domain;
import java.util.List;
public record SaveRuleResponse(
long version,
int ruleCount,
int keywordCount,
List<String> warnings,
LlmConfig llmConfig,
List<RuleSet> ruleSets
) {
public SaveRuleResponse(
long version,
int ruleCount,
int keywordCount,
List<String> warnings,
List<RuleSet> ruleSets
) {
this(version, ruleCount, keywordCount, warnings, LlmConfig.defaults(), ruleSets);
}
public SaveRuleResponse {
warnings = warnings == null ? List.of() : List.copyOf(warnings);
llmConfig = llmConfig == null ? LlmConfig.defaults() : llmConfig;
ruleSets = ruleSets == null ? List.of() : List.copyOf(ruleSets);
}
}