LangChain4jChatModel

constructor(model: ChatModel, streamingModel: StreamingChatModel? = null)

Parameters

model

the LangChain4j chat model to call.

streamingModel

the LangChain4j model that stream calls. Without one, stream asks model and delivers the text of its answer in one piece.