Package com.embabel.agent.spi.support
Class LlmDataBindingProperties
-
- All Implemented Interfaces:
-
com.embabel.agent.common.RetryTemplateProvider
@ConfigurationProperties(prefix = "embabel.agent.platform.llm-operations.data-binding") public final class LlmDataBindingProperties implements RetryTemplateProvider
We want to be more forgiving with data binding. This can be important for smaller models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLlmDataBindingProperties.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegermaxAttemptsprivate final LongfixedBackoffMillisprivate final BooleansendValidationInfopublic final static LlmDataBindingProperties.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description LlmDataBindingProperties(Integer maxAttempts, Long fixedBackoffMillis, Boolean sendValidationInfo)
-
Method Summary
Modifier and Type Method Description IntegergetMaxAttempts()final LonggetFixedBackoffMillis()final BooleangetSendValidationInfo()RetryTemplateretryTemplate(String name)-
-
Constructor Detail
-
LlmDataBindingProperties
LlmDataBindingProperties(Integer maxAttempts, Long fixedBackoffMillis, Boolean sendValidationInfo)
- Parameters:
maxAttempts- Maximum retry attempts for data bindingfixedBackoffMillis- Fixed backoff time in milliseconds between retriessendValidationInfo- Should we send validation info to the LLM in every request, even before a validation error occurs?
-
-
Method Detail
-
getMaxAttempts
Integer getMaxAttempts()
-
getFixedBackoffMillis
final Long getFixedBackoffMillis()
-
getSendValidationInfo
final Boolean getSendValidationInfo()
-
retryTemplate
RetryTemplate retryTemplate(String name)
-
-
-
-