Package com.tnsai.llm.cost
Class BudgetManager.Builder
java.lang.Object
com.tnsai.llm.cost.BudgetManager.Builder
- Enclosing class:
BudgetManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalertThreshold(double threshold) alertThresholds(double... thresholds) build()costTracker(CostTracker costTracker) daily()hardLimit(boolean hardLimit) limit(double limit) limit(BigDecimal limit) monthly()onAlert(Consumer<BudgetManager.BudgetAlert> onAlert) onLimitExceeded(Consumer<BigDecimal> onLimitExceeded)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limit
-
limit
-
limit
-
period
-
daily
-
monthly
-
alertThreshold
-
alertThresholds
-
defaultAlertThresholds
-
hardLimit
-
softLimit
-
onAlert
-
onLimitExceeded
-
costTracker
-
build
-