Class LangChain4j
java.lang.Object
com.google.adk.models.BaseLlm
com.google.adk.models.langchain4j.LangChain4j
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLangChain4j(dev.langchain4j.model.chat.ChatModel chatModel) LangChain4j(dev.langchain4j.model.chat.ChatModel chatModel, dev.langchain4j.model.chat.StreamingChatModel streamingChatModel, String modelName) LangChain4j(dev.langchain4j.model.chat.ChatModel chatModel, String modelName) LangChain4j(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel) LangChain4j(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel, String modelName) -
Method Summary
Modifier and TypeMethodDescriptionstatic LangChain4j.Builderbuilder()abstract @Nullable dev.langchain4j.model.chat.ChatModelconnect(LlmRequest llmRequest) io.reactivex.rxjava3.core.Flowable<LlmResponse>generateContent(LlmRequest llmRequest, boolean stream) model()abstract Stringabstract com.fasterxml.jackson.databind.ObjectMapperabstract @Nullable dev.langchain4j.model.chat.StreamingChatModelabstract @Nullable dev.langchain4j.model.TokenCountEstimator
-
Constructor Details
-
LangChain4j
public LangChain4j(dev.langchain4j.model.chat.ChatModel chatModel) -
LangChain4j
-
LangChain4j
public LangChain4j(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel) -
LangChain4j
public LangChain4j(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel, String modelName) -
LangChain4j
public LangChain4j(dev.langchain4j.model.chat.ChatModel chatModel, dev.langchain4j.model.chat.StreamingChatModel streamingChatModel, String modelName)
-
-
Method Details
-
chatModel
public abstract @Nullable dev.langchain4j.model.chat.ChatModel chatModel() -
streamingChatModel
public abstract @Nullable dev.langchain4j.model.chat.StreamingChatModel streamingChatModel() -
objectMapper
public abstract com.fasterxml.jackson.databind.ObjectMapper objectMapper() -
modelName
-
tokenCountEstimator
public abstract @Nullable dev.langchain4j.model.TokenCountEstimator tokenCountEstimator() -
model
-
builder
-
generateContent
public io.reactivex.rxjava3.core.Flowable<LlmResponse> generateContent(LlmRequest llmRequest, boolean stream) - Specified by:
generateContentin classBaseLlm
-
connect
-