Class PromptOptions.Params.AnthropicModelParams.Builder
-
- All Implemented Interfaces:
public final class PromptOptions.Params.AnthropicModelParams.BuilderA builder for AnthropicModelParams.
-
-
Method Summary
-
-
Method Detail
-
maxTokens
final PromptOptions.Params.AnthropicModelParams.Builder maxTokens(Double maxTokens)
-
maxTokens
final PromptOptions.Params.AnthropicModelParams.Builder maxTokens(JsonField<Double> maxTokens)
Sets Builder.maxTokens to an arbitrary JSON value.
You should usually call Builder.maxTokens with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
temperature
final PromptOptions.Params.AnthropicModelParams.Builder temperature(Double temperature)
-
temperature
final PromptOptions.Params.AnthropicModelParams.Builder temperature(JsonField<Double> temperature)
Sets Builder.temperature to an arbitrary JSON value.
You should usually call Builder.temperature with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxTokensToSample
final PromptOptions.Params.AnthropicModelParams.Builder maxTokensToSample(Double maxTokensToSample)
This is a legacy parameter that should not be used.
-
maxTokensToSample
final PromptOptions.Params.AnthropicModelParams.Builder maxTokensToSample(JsonField<Double> maxTokensToSample)
Sets Builder.maxTokensToSample to an arbitrary JSON value.
You should usually call Builder.maxTokensToSample with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopSequences
final PromptOptions.Params.AnthropicModelParams.Builder stopSequences(List<String> stopSequences)
-
stopSequences
final PromptOptions.Params.AnthropicModelParams.Builder stopSequences(JsonField<List<String>> stopSequences)
Sets Builder.stopSequences to an arbitrary JSON value.
You should usually call Builder.stopSequences with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addStopSequence
final PromptOptions.Params.AnthropicModelParams.Builder addStopSequence(String stopSequence)
Adds a single String to stopSequences.
-
topK
final PromptOptions.Params.AnthropicModelParams.Builder topK(Double topK)
-
topK
final PromptOptions.Params.AnthropicModelParams.Builder topK(JsonField<Double> topK)
Sets Builder.topK to an arbitrary JSON value.
You should usually call Builder.topK with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
topP
final PromptOptions.Params.AnthropicModelParams.Builder topP(Double topP)
-
topP
final PromptOptions.Params.AnthropicModelParams.Builder topP(JsonField<Double> topP)
Sets Builder.topP to an arbitrary JSON value.
You should usually call Builder.topP with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
useCache
final PromptOptions.Params.AnthropicModelParams.Builder useCache(Boolean useCache)
-
useCache
final PromptOptions.Params.AnthropicModelParams.Builder useCache(JsonField<Boolean> useCache)
Sets Builder.useCache to an arbitrary JSON value.
You should usually call Builder.useCache with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PromptOptions.Params.AnthropicModelParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptOptions.Params.AnthropicModelParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptOptions.Params.AnthropicModelParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptOptions.Params.AnthropicModelParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptOptions.Params.AnthropicModelParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptOptions.Params.AnthropicModelParams build()
Returns an immutable instance of AnthropicModelParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.maxTokens() .temperature()
-
-
-
-