Package dev.enola.ai.langchain4j
Class MockChatModel.Provider
java.lang.Object
dev.enola.ai.iri.MockModelProvider<dev.langchain4j.model.chat.StreamingChatModel>
dev.enola.ai.langchain4j.MockChatModel.Provider
- All Implemented Interfaces:
Provider<dev.langchain4j.model.chat.StreamingChatModel>,ChatModelProvider
- Enclosing class:
MockChatModel
public static class MockChatModel.Provider
extends MockModelProvider<dev.langchain4j.model.chat.StreamingChatModel>
implements ChatModelProvider
-
Field Summary
Fields inherited from class dev.enola.ai.iri.MockModelProvider
EXAMPLE_URI, SCHEME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.enola.ai.iri.MockModelProvider
docURL, name, uriExamples, uriTemplatesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.ai.iri.Provider
docURL, get, get, name, uriExamples, uriTemplates
-
Constructor Details
-
Provider
public Provider()
-
-
Method Details
-
optional
public Optional<dev.langchain4j.model.chat.StreamingChatModel> optional(URI uri) throws IllegalArgumentException, UncheckedIOException Description copied from interface:ProviderReturn AI Thing if it's available. Empty if its configuration like secrets etc. is missing.- Specified by:
optionalin interfaceProvider<dev.langchain4j.model.chat.StreamingChatModel>- Throws:
IllegalArgumentExceptionUncheckedIOException
-