Class FileCitationDeltaAnnotation
-
- All Implemented Interfaces:
public final class FileCitationDeltaAnnotation
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FileCitationDeltaAnnotation.Builder
A builder for FileCitationDeltaAnnotation.
public final class
FileCitationDeltaAnnotation.FileCitation
-
Method Summary
Modifier and Type Method Description final Long
index()
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.Builder
toBuilder()
final FileCitationDeltaAnnotation
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileCitationDeltaAnnotation.Builder
builder()
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()
-
builder
final static FileCitationDeltaAnnotation.Builder builder()
Returns a mutable builder for constructing an instance of FileCitationDeltaAnnotation.
The following fields are required:
.index()
-
-
-
-