Class FileCitationDeltaAnnotation
-
- All Implemented Interfaces:
public final class FileCitationDeltaAnnotationA 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileCitationDeltaAnnotation.BuilderA builder for FileCitationDeltaAnnotation.
public final classFileCitationDeltaAnnotation.FileCitation
-
Method Summary
Modifier and Type Method Description final Longindex()The index of the annotation in the text content part. final JsonValue_type()Always file_citation.final Optional<Long>endIndex()final Optional<FileCitationDeltaAnnotation.FileCitation>fileCitation()final Optional<Long>startIndex()final Optional<String>text()The text in the message content that needs to be replaced. final JsonField<Long>_index()Returns the raw JSON value of index. final JsonField<Long>_endIndex()Returns the raw JSON value of endIndex. final JsonField<FileCitationDeltaAnnotation.FileCitation>_fileCitation()Returns the raw JSON value of fileCitation. final JsonField<Long>_startIndex()Returns the raw JSON value of startIndex. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final FileCitationDeltaAnnotation.BuildertoBuilder()final FileCitationDeltaAnnotationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileCitationDeltaAnnotation.Builderbuilder()Returns a mutable builder for constructing an instance of FileCitationDeltaAnnotation. -
-
Method Detail
-
_type
final JsonValue _type()
Always
file_citation.Expected to always return the following:
JsonValue.from("file_citation")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
fileCitation
final Optional<FileCitationDeltaAnnotation.FileCitation> fileCitation()
-
startIndex
final Optional<Long> startIndex()
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_endIndex
final JsonField<Long> _endIndex()
Returns the raw JSON value of endIndex.
Unlike endIndex, this method doesn't throw if the JSON field has an unexpected type.
-
_fileCitation
final JsonField<FileCitationDeltaAnnotation.FileCitation> _fileCitation()
Returns the raw JSON value of fileCitation.
Unlike fileCitation, this method doesn't throw if the JSON field has an unexpected type.
-
_startIndex
final JsonField<Long> _startIndex()
Returns the raw JSON value of startIndex.
Unlike startIndex, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FileCitationDeltaAnnotation.Builder toBuilder()
-
validate
final FileCitationDeltaAnnotation validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static FileCitationDeltaAnnotation.Builder builder()
Returns a mutable builder for constructing an instance of FileCitationDeltaAnnotation.
The following fields are required:
.index()
-
-
-
-