Interface AiProvider.ModelLifecycle
- All Known Subinterfaces:
OciGenAiChatModelConfig,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiChatModelConfigBlueprint,OciGenAiCohereChatModelConfig,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiCohereChatModelConfigBlueprint,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiCohereLc4jProvider,OciGenAiCohereStreamingChatModelConfig,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiCohereStreamingChatModelConfigBlueprint,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiCohereStreamingLc4jProvider,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiLc4jProvider,OciGenAiStreamingChatModelConfig,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiStreamingChatModelConfigBlueprint,io.helidon.integrations.langchain4j.providers.oci.genai.OciGenAiStreamingLc4jProvider
- All Known Implementing Classes:
OciGenAiChatModelConfig.BuilderBase.OciGenAiChatModelConfigImpl,OciGenAiCohereChatModelConfig.BuilderBase.OciGenAiCohereChatModelConfigImpl,OciGenAiCohereStreamingChatModelConfig.BuilderBase.OciGenAiCohereStreamingChatModelConfigImpl,OciGenAiStreamingChatModelConfig.BuilderBase.OciGenAiStreamingChatModelConfigImpl
- Enclosing class:
AiProvider
public static interface AiProvider.ModelLifecycle
Lifecycle contract for model configurations consumed by generated model factories.
Generated factories close model instances by default. A configuration that supplies externally owned resources to a model can opt out so closing the model does not also close those resources.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether the generated model factory owns and should close the configured model.
-
Method Details
-
closeModelOnShutdown
default boolean closeModelOnShutdown()Whether the generated model factory owns and should close the configured model.- Returns:
truewhen the generated factory should close the model
-