Class WatsonxStreamingChatModel

java.lang.Object
dev.langchain4j.model.watsonx.WatsonxStreamingChatModel
All Implemented Interfaces:
StreamingChatModel

public class WatsonxStreamingChatModel extends Object implements StreamingChatModel
A StreamingChatModel implementation that integrates IBM watsonx.ai with LangChain4j.

Example usage:


StreamingChatModel chatModel = WatsonxStreamingChatModel.builder()
    .url("https://...") // or use CloudRegion
    .apiKey("...")
    .projectId("...")
    .modelName("ibm/granite-3-8b-instruct")
    .maxOutputTokens(0)
    .temperature(0.7)
    .build();