Class ChatJsonRPCService
java.lang.Object
io.quarkiverse.langchain4j.runtime.devui.ChatJsonRPCService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChatJsonRPCService
(List<dev.langchain4j.model.chat.ChatModel> models, List<dev.langchain4j.model.chat.StreamingChatModel> streamingModels, List<Supplier<dev.langchain4j.rag.RetrievalAugmentor>> retrievalAugmentorSuppliers, List<dev.langchain4j.rag.RetrievalAugmentor> retrievalAugmentors, dev.langchain4j.memory.chat.ChatMemoryProvider memoryProvider, QuarkusToolExecutorFactory toolExecutorFactory, List<Supplier<dev.langchain4j.service.tool.ToolProvider>> toolProvidersSuppliers, List<dev.langchain4j.service.tool.ToolProvider> toolProviders) -
Method Summary
Modifier and TypeMethodDescriptionboolean
io.smallrye.mutiny.Multi
<io.vertx.core.json.JsonObject> streamingChat
(String message, boolean ragEnabled)
-
Field Details
-
MAX_SEQUENTIAL_TOOL_EXECUTIONS
public static final int MAX_SEQUENTIAL_TOOL_EXECUTIONS- See Also:
-
-
Constructor Details
-
ChatJsonRPCService
public ChatJsonRPCService(List<dev.langchain4j.model.chat.ChatModel> models, List<dev.langchain4j.model.chat.StreamingChatModel> streamingModels, List<Supplier<dev.langchain4j.rag.RetrievalAugmentor>> retrievalAugmentorSuppliers, List<dev.langchain4j.rag.RetrievalAugmentor> retrievalAugmentors, dev.langchain4j.memory.chat.ChatMemoryProvider memoryProvider, QuarkusToolExecutorFactory toolExecutorFactory, List<Supplier<dev.langchain4j.service.tool.ToolProvider>> toolProvidersSuppliers, List<dev.langchain4j.service.tool.ToolProvider> toolProviders)
-
-
Method Details
-
reset
-
isStreamingChatSupported
public boolean isStreamingChatSupported() -
streamingChat
public io.smallrye.mutiny.Multi<io.vertx.core.json.JsonObject> streamingChat(String message, boolean ragEnabled) -
chat
-