Package dev.enola.ai.langchain4j
Interface ChatModelProvider
- All Known Implementing Classes:
ChatModelProviderChain
,ChatModelProviders
,GoogleChatModelProvider
,MockChatModel.Provider
,OllamaChatModelProvider
public interface ChatModelProvider
extends Provider<URI,dev.langchain4j.model.chat.StreamingChatModel>
ChatLanguageModelProvider provides a LM based on the Enola.dev AI URI spec.
-
Method Summary
Modifier and TypeMethodDescriptiondefault dev.langchain4j.model.chat.StreamingChatModel
Get.Optional
<dev.langchain4j.model.chat.StreamingChatModel> getOptional
(URI uri) default String
name()
-
Method Details
-
name
-
uriTemplate
String uriTemplate() -
uriExample
URI uriExample() -
get
default dev.langchain4j.model.chat.StreamingChatModel get(URI uri) throws IllegalArgumentException, UncheckedIOException Description copied from interface:Provider
Get.- Specified by:
get
in interfaceProvider<URI,
dev.langchain4j.model.chat.StreamingChatModel> - Parameters:
uri
- Key, never null- Returns:
- value, or null if there is no Value for the given key
- Throws:
IllegalArgumentException
UncheckedIOException
-
getOptional
Optional<dev.langchain4j.model.chat.StreamingChatModel> getOptional(URI uri) throws IllegalArgumentException, UncheckedIOException
-