Package com.openai.models
Class TextDelta.Builder
-
- All Implemented Interfaces:
public final class TextDelta.Builder
A builder for TextDelta.
-
-
Method Summary
Modifier and Type Method Description final TextDelta.Builder
annotations(List<AnnotationDelta> annotations)
final TextDelta.Builder
annotations(JsonField<List<AnnotationDelta>> annotations)
final TextDelta.Builder
addAnnotation(AnnotationDelta annotation)
final TextDelta.Builder
addAnnotation(FileCitationDeltaAnnotation fileCitation)
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final TextDelta.Builder
addAnnotation(FilePathDeltaAnnotation filePath)
A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.final TextDelta.Builder
addFileCitationAnnotation(Long index)
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final TextDelta.Builder
addFilePathAnnotation(Long index)
A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.final TextDelta.Builder
value(String value)
The data that makes up the text. final TextDelta.Builder
value(JsonField<String> value)
The data that makes up the text. final TextDelta.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final TextDelta.Builder
putAdditionalProperty(String key, JsonValue value)
final TextDelta.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final TextDelta.Builder
removeAdditionalProperty(String key)
final TextDelta.Builder
removeAllAdditionalProperties(Set<String> keys)
final TextDelta
build()
-
-
Method Detail
-
annotations
final TextDelta.Builder annotations(List<AnnotationDelta> annotations)
-
annotations
final TextDelta.Builder annotations(JsonField<List<AnnotationDelta>> annotations)
-
addAnnotation
final TextDelta.Builder addAnnotation(AnnotationDelta annotation)
-
addAnnotation
final TextDelta.Builder addAnnotation(FileCitationDeltaAnnotation 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 TextDelta.Builder addAnnotation(FilePathDeltaAnnotation filePath)
A URL for the file that's generated when the assistant used the
code_interpreter
tool to generate a file.
-
addFileCitationAnnotation
final TextDelta.Builder addFileCitationAnnotation(Long index)
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.
-
addFilePathAnnotation
final TextDelta.Builder addFilePathAnnotation(Long index)
A URL for the file that's generated when the assistant used the
code_interpreter
tool to generate a file.
-
value
final TextDelta.Builder value(String value)
The data that makes up the text.
-
value
final TextDelta.Builder value(JsonField<String> value)
The data that makes up the text.
-
additionalProperties
final TextDelta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextDelta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextDelta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextDelta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextDelta.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-