Class ResponseOutputText.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputText.Builder
A builder for ResponseOutputText.
-
-
Method Summary
-
-
Method Detail
-
annotations
final ResponseOutputText.Builder annotations(List<ResponseOutputText.Annotation> annotations)
The annotations of the text output.
-
annotations
final ResponseOutputText.Builder annotations(JsonField<List<ResponseOutputText.Annotation>> annotations)
Sets Builder.annotations to an arbitrary JSON value.
You should usually call Builder.annotations with a well-typed
List<Annotation>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAnnotation
final ResponseOutputText.Builder addAnnotation(ResponseOutputText.Annotation annotation)
Adds a single Annotation to annotations.
-
addAnnotation
final ResponseOutputText.Builder addAnnotation(ResponseOutputText.Annotation.FileCitation fileCitation)
Alias for calling addAnnotation with
Annotation.ofFileCitation(fileCitation)
.
-
addAnnotation
final ResponseOutputText.Builder addAnnotation(ResponseOutputText.Annotation.UrlCitation urlCitation)
Alias for calling addAnnotation with
Annotation.ofUrlCitation(urlCitation)
.
-
addAnnotation
final ResponseOutputText.Builder addAnnotation(ResponseOutputText.Annotation.FilePath filePath)
Alias for calling addAnnotation with
Annotation.ofFilePath(filePath)
.
-
text
final ResponseOutputText.Builder text(String text)
The text output from the model.
-
text
final ResponseOutputText.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseOutputText.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("output_text")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseOutputText.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseOutputText.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseOutputText.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseOutputText.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseOutputText.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseOutputText build()
Returns an immutable instance of ResponseOutputText.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.annotations() .text()
-
-
-
-