Class WatsonxDeploymentStreamingChatModel

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

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

Example usage:

StreamingChatModel chatModel = WatsonxDeploymentStreamingChatModel.builder()
    .baseUrl("https://...") // or use CloudRegion
    .apiKey("...")
    .deploymentId("...")
    .maxOutputTokens(0)
    .temperature(0.7)
    .build();
  • Field Details

    • deploymentService

      protected final com.ibm.watsonx.ai.deployment.DeploymentService deploymentService
    • deploymentId

      protected final String deploymentId
    • listeners

      protected final List<ChatModelListener> listeners
    • defaultRequestParameters

      protected final ChatRequestParameters defaultRequestParameters
    • supportedCapabilities

      protected final Set<Capability> supportedCapabilities
    • strictJsonSchema

      protected final boolean strictJsonSchema
  • Method Details