Class ChatKitResponseOutputText.Builder
-
- All Implemented Interfaces:
public final class ChatKitResponseOutputText.Builder
A builder for ChatKitResponseOutputText.
-
-
Method Summary
-
-
Method Detail
-
annotations
final ChatKitResponseOutputText.Builder annotations(List<ChatKitResponseOutputText.Annotation> annotations)
Ordered list of annotations attached to the response text.
-
annotations
final ChatKitResponseOutputText.Builder annotations(JsonField<List<ChatKitResponseOutputText.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 ChatKitResponseOutputText.Builder addAnnotation(ChatKitResponseOutputText.Annotation annotation)
Adds a single Annotation to annotations.
-
addAnnotation
final ChatKitResponseOutputText.Builder addAnnotation(ChatKitResponseOutputText.Annotation.File file)
Alias for calling addAnnotation with
Annotation.ofFile(file)
.
-
addAnnotation
final ChatKitResponseOutputText.Builder addAnnotation(ChatKitResponseOutputText.Annotation.Url url)
Alias for calling addAnnotation with
Annotation.ofUrl(url)
.
-
addFileAnnotation
final ChatKitResponseOutputText.Builder addFileAnnotation(ChatKitResponseOutputText.Annotation.File.Source source)
Alias for calling addAnnotation with the following:
Annotation.File.builder() .source(source) .build()
-
addUrlAnnotation
final ChatKitResponseOutputText.Builder addUrlAnnotation(ChatKitResponseOutputText.Annotation.Url.Source source)
Alias for calling addAnnotation with the following:
Annotation.Url.builder() .source(source) .build()
-
text
final ChatKitResponseOutputText.Builder text(String text)
Assistant generated text.
-
text
final ChatKitResponseOutputText.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 ChatKitResponseOutputText.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 ChatKitResponseOutputText.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitResponseOutputText.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitResponseOutputText.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitResponseOutputText.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitResponseOutputText.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitResponseOutputText build()
Returns an immutable instance of ChatKitResponseOutputText.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.annotations() .text()
-
-
-
-