Package com.openai.models
Class Text.Builder
-
- All Implemented Interfaces:
public final class Text.Builder
A builder for Text.
-
-
Method Summary
Modifier and Type Method Description final Text.Builder
annotations(List<Annotation> annotations)
final Text.Builder
annotations(JsonField<List<Annotation>> annotations)
final Text.Builder
addAnnotation(Annotation annotation)
final Text.Builder
addAnnotation(FileCitationAnnotation fileCitation)
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final Text.Builder
addAnnotation(FilePathAnnotation filePath)
A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.final Text.Builder
value(String value)
The data that makes up the text. final Text.Builder
value(JsonField<String> value)
The data that makes up the text. final Text.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Text.Builder
putAdditionalProperty(String key, JsonValue value)
final Text.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Text.Builder
removeAdditionalProperty(String key)
final Text.Builder
removeAllAdditionalProperties(Set<String> keys)
final Text
build()
-
-
Method Detail
-
annotations
final Text.Builder annotations(List<Annotation> annotations)
-
annotations
final Text.Builder annotations(JsonField<List<Annotation>> annotations)
-
addAnnotation
final Text.Builder addAnnotation(Annotation annotation)
-
addAnnotation
final Text.Builder addAnnotation(FileCitationAnnotation fileCitation)
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
-
addAnnotation
final Text.Builder addAnnotation(FilePathAnnotation filePath)
A URL for the file that's generated when the assistant used the
code_interpreter
tool to generate a file.
-
value
final Text.Builder value(String value)
The data that makes up the text.
-
value
final Text.Builder value(JsonField<String> value)
The data that makes up the text.
-
additionalProperties
final Text.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Text.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Text.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Text.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Text.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-