Package com.tnsai.agents.variant
Class VariantSelector.Builder
java.lang.Object
com.tnsai.agents.variant.VariantSelector.Builder
- Enclosing class:
VariantSelector
Builder for VariantSelector.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the selector.withAnalyzer(TaskComplexityAnalyzer analyzer) Sets a custom complexity analyzer.Sets a token budget constraint.withDailyLimit(long dailyLimit) Sets a daily token limit budget.withLearning(boolean enabled) Enables or disables learning from history.withPreference(VariantSelector.VariantPreference preference) Sets the user preference.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withAnalyzer
Sets a custom complexity analyzer.- Parameters:
analyzer- the analyzer- Returns:
- this builder
-
withBudget
Sets a token budget constraint.- Parameters:
budget- the budget- Returns:
- this builder
-
withDailyLimit
Sets a daily token limit budget.- Parameters:
dailyLimit- daily token limit- Returns:
- this builder
-
withPreference
Sets the user preference.- Parameters:
preference- quality/speed/cost preference- Returns:
- this builder
-
withLearning
Enables or disables learning from history.- Parameters:
enabled- true to enable learning- Returns:
- this builder
-
build
Builds the selector.- Returns:
- configured selector
-