Class LabelModelGrader.Input.Builder
-
- All Implemented Interfaces:
public final class LabelModelGrader.Input.BuilderA builder for Input.
-
-
Method Summary
-
-
Method Detail
-
content
final LabelModelGrader.Input.Builder content(LabelModelGrader.Input.Content content)
Inputs to the model - can contain template strings.
-
content
final LabelModelGrader.Input.Builder content(JsonField<LabelModelGrader.Input.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final LabelModelGrader.Input.Builder content(String textInput)
Alias for calling content with
Content.ofTextInput(textInput).
-
content
final LabelModelGrader.Input.Builder content(ResponseInputText responseInputText)
Alias for calling content with
Content.ofResponseInputText(responseInputText).
-
content
final LabelModelGrader.Input.Builder content(LabelModelGrader.Input.Content.OutputText outputText)
Alias for calling content with
Content.ofOutputText(outputText).
-
content
final LabelModelGrader.Input.Builder content(LabelModelGrader.Input.Content.InputImage inputImage)
Alias for calling content with
Content.ofInputImage(inputImage).
-
contentOfAnArrayOfInputTextAndInputImage
final LabelModelGrader.Input.Builder contentOfAnArrayOfInputTextAndInputImage(List<JsonValue> anArrayOfInputTextAndInputImage)
Alias for calling content with
Content.ofAnArrayOfInputTextAndInputImage(anArrayOfInputTextAndInputImage).
-
role
final LabelModelGrader.Input.Builder role(LabelModelGrader.Input.Role role)
The role of the message input. One of
user,assistant,system, ordeveloper.
-
role
final LabelModelGrader.Input.Builder role(JsonField<LabelModelGrader.Input.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final LabelModelGrader.Input.Builder type(LabelModelGrader.Input.Type type)
The type of the message input. Always
message.
-
type
final LabelModelGrader.Input.Builder type(JsonField<LabelModelGrader.Input.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.
-
additionalProperties
final LabelModelGrader.Input.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final LabelModelGrader.Input.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final LabelModelGrader.Input.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final LabelModelGrader.Input.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final LabelModelGrader.Input.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final LabelModelGrader.Input build()
Returns an immutable instance of Input.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .role()
-
-
-
-