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