Package com.embabel.agent.spi.support
Class RankingProperties
-
- All Implemented Interfaces:
-
com.embabel.agent.spi.common.RetryProperties,com.embabel.agent.spi.common.RetryTemplateProvider
@ConfigurationProperties(value = "embabel.agent.platform.ranking") public final class RankingProperties implements RetryProperties
Properties for the ranking service. Optional LLM selection, plus normal retry properties.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringllmprivate final IntegermaxAttemptsprivate final LongbackoffMillisprivate final DoublebackoffMultiplierprivate final LongbackoffMaxIntervalprivate final RetryPolicyretryPolicy
-
Method Summary
Modifier and Type Method Description final StringgetLlm()IntegergetMaxAttempts()LonggetBackoffMillis()DoublegetBackoffMultiplier()LonggetBackoffMaxInterval()-
-
Constructor Detail
-
RankingProperties
RankingProperties(String llm, Integer maxAttempts, Long backoffMillis, Double backoffMultiplier, Long backoffMaxInterval)
- Parameters:
llm- name of the LLM to use for ranking, or null to use auto selectionmaxAttempts- maximum number of attempts to retry rankingbackoffMillis- initial backoff time in millisecondsbackoffMultiplier- multiplier for backoff timebackoffMaxInterval- maximum backoff time in milliseconds
-
-
Method Detail
-
getMaxAttempts
Integer getMaxAttempts()
-
getBackoffMillis
Long getBackoffMillis()
-
getBackoffMultiplier
Double getBackoffMultiplier()
-
getBackoffMaxInterval
Long getBackoffMaxInterval()
-
-
-
-