Class WatsonxStreamingChatModel.Builder
java.lang.Object
dev.langchain4j.model.watsonx.WatsonxStreamingChatModel.Builder
- Enclosing class:
WatsonxStreamingChatModel
Builder class for constructing
WatsonxStreamingChatModel instances with configurable parameters.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider(com.ibm.watsonx.ai.core.auth.AuthenticationProvider authenticationProvider) build()defaultRequestParameters(ChatRequestParameters defaultRequestParameters) frequencyPenalty(Double frequencyPenalty) listeners(List<ChatModelListener> listeners) logRequests(Boolean logRequests) logResponses(Boolean logResponses) maxOutputTokens(Integer maxOutputTokens) presencePenalty(Double presencePenalty) responseFormat(ResponseFormat responseFormat) stopSequences(String... stopSequences) stopSequences(List<String> stopSequences) supportedCapabilities(Capability... supportedCapabilities) supportedCapabilities(Set<Capability> supportedCapabilities) temperature(Double temperature) thinking(boolean enabled) thinking(com.ibm.watsonx.ai.chat.model.ExtractionTags tags) thinking(com.ibm.watsonx.ai.chat.model.Thinking thinking) thinking(com.ibm.watsonx.ai.chat.model.ThinkingEffort thinkingEffort) toolChoice(ToolChoice toolChoice) toolChoiceName(String toolChoiceName) toolSpecifications(ToolSpecification... toolSpecifications) toolSpecifications(List<ToolSpecification> toolSpecifications) topLogprobs(Integer topLogprobs) url(com.ibm.watsonx.ai.CloudRegion cloudRegion)
-
Field Details
-
url
-
version
-
apiKey
-
logRequests
-
logResponses
-
authenticationProvider
protected com.ibm.watsonx.ai.core.auth.AuthenticationProvider authenticationProvider
-
-
Method Details
-
build
-
url
-
modelName
-
projectId
-
spaceId
-
temperature
-
topP
-
frequencyPenalty
-
presencePenalty
-
maxOutputTokens
-
stopSequences
-
stopSequences
-
toolChoice
-
responseFormat
-
logitBias
-
logprobs
-
topLogprobs
-
seed
-
toolChoiceName
-
timeLimit
-
supportedCapabilities
public WatsonxStreamingChatModel.Builder supportedCapabilities(Set<Capability> supportedCapabilities) -
supportedCapabilities
-
toolSpecifications
public WatsonxStreamingChatModel.Builder toolSpecifications(List<ToolSpecification> toolSpecifications) -
toolSpecifications
public WatsonxStreamingChatModel.Builder toolSpecifications(ToolSpecification... toolSpecifications) -
listeners
-
defaultRequestParameters
public WatsonxStreamingChatModel.Builder defaultRequestParameters(ChatRequestParameters defaultRequestParameters) -
thinking
-
thinking
public WatsonxStreamingChatModel.Builder thinking(com.ibm.watsonx.ai.chat.model.ExtractionTags tags) -
thinking
public WatsonxStreamingChatModel.Builder thinking(com.ibm.watsonx.ai.chat.model.ThinkingEffort thinkingEffort) -
thinking
-
url
-
url
-
version
-
apiKey
-
logRequests
-
logResponses
-
authenticationProvider
public WatsonxStreamingChatModel.Builder authenticationProvider(com.ibm.watsonx.ai.core.auth.AuthenticationProvider authenticationProvider)
-