Package org.mockserver.llm.analysis
Class LlmOptimisationReport.Verdict
java.lang.Object
org.mockserver.llm.analysis.LlmOptimisationReport.Verdict
- Enclosing class:
- LlmOptimisationReport
A deterministic, in-product verdict — A–F grade plus the recoverable-spend
headline. Always present (an empty report yields grade
A, zeros).
The headline is clamped so totalEstimatedSavingUsd never exceeds
totals.estimatedCostUsd (per-call MAX attribution, see the builder).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGrade()intintintdoubledoublelongbooleansetCostIsEstimated(boolean costIsEstimated) setHighCount(int highCount) setLowCount(int lowCount) setMediumCount(int mediumCount) setRationale(String rationale) setSavingFractionOfSpend(double savingFractionOfSpend) setTotalEstimatedSavingUsd(double totalEstimatedSavingUsd) setTotalWastedInputTokens(long totalWastedInputTokens)
-
Constructor Details
-
Verdict
public Verdict()
-
-
Method Details
-
getGrade
-
setGrade
-
getRationale
-
setRationale
-
getTotalEstimatedSavingUsd
public double getTotalEstimatedSavingUsd() -
setTotalEstimatedSavingUsd
-
getTotalWastedInputTokens
public long getTotalWastedInputTokens() -
setTotalWastedInputTokens
-
getSavingFractionOfSpend
public double getSavingFractionOfSpend() -
setSavingFractionOfSpend
-
isCostIsEstimated
public boolean isCostIsEstimated() -
setCostIsEstimated
-
getHighCount
public int getHighCount() -
setHighCount
-
getMediumCount
public int getMediumCount() -
setMediumCount
-
getLowCount
public int getLowCount() -
setLowCount
-