Package io.quarkiverse.langchain4j.spi
Interface DefaultMemoryIdProvider
public interface DefaultMemoryIdProvider
Quarkus extension can decide whether they can provide a default value for the memory ID object if none was explicitly
provided.
The idea behind this is that depending on the type of request that is being served, Quarkus can determine a unique (per request) object to be used.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionDetermines the object to be used as the default memory ID.default intpriority()Defines the priority of the providers.
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY- See Also:
-
-
Method Details
-
priority
default int priority()Defines the priority of the providers. A lower integer value means that the customizer will be considered before one with a higher priority -
getMemoryId
Object getMemoryId()Determines the object to be used as the default memory ID. A value ofnullmeans that the provider is not going to give a value and therefore he next provider should be tried.
-