Class PromptData.Parser.Builder
-
- All Implemented Interfaces:
public final class PromptData.Parser.BuilderA builder for Parser.
-
-
Method Summary
-
-
Method Detail
-
choiceScores
final PromptData.Parser.Builder choiceScores(PromptData.Parser.ChoiceScores choiceScores)
-
choiceScores
final PromptData.Parser.Builder choiceScores(JsonField<PromptData.Parser.ChoiceScores> choiceScores)
Sets Builder.choiceScores to an arbitrary JSON value.
You should usually call Builder.choiceScores with a well-typed ChoiceScores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final PromptData.Parser.Builder type(PromptData.Parser.Type type)
-
type
final PromptData.Parser.Builder type(JsonField<PromptData.Parser.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
useCot
final PromptData.Parser.Builder useCot(Boolean useCot)
-
useCot
final PromptData.Parser.Builder useCot(JsonField<Boolean> useCot)
Sets Builder.useCot to an arbitrary JSON value.
You should usually call Builder.useCot 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 PromptData.Parser.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptData.Parser.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptData.Parser.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptData.Parser.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptData.Parser.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptData.Parser build()
Returns an immutable instance of Parser.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.choiceScores() .type() .useCot()
-
-
-
-