Class FileCitationAnnotation
-
- All Implemented Interfaces:
public final class FileCitationAnnotation
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
FileCitationAnnotation.Builder
A builder for FileCitationAnnotation.
public final class
FileCitationAnnotation.FileCitation
-
Method Summary
Modifier and Type Method Description final Long
endIndex()
final FileCitationAnnotation.FileCitation
fileCitation()
final Long
startIndex()
final String
text()
The text in the message content that needs to be replaced. final JsonValue
_type()
Always file_citation
.final JsonField<Long>
_endIndex()
Returns the raw JSON value of endIndex. final JsonField<FileCitationAnnotation.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 FileCitationAnnotation.Builder
toBuilder()
final FileCitationAnnotation
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FileCitationAnnotation.Builder
builder()
Returns a mutable builder for constructing an instance of FileCitationAnnotation. -
-
Method Detail
-
fileCitation
final FileCitationAnnotation.FileCitation fileCitation()
-
startIndex
final Long startIndex()
-
_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).
-
_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<FileCitationAnnotation.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 FileCitationAnnotation.Builder toBuilder()
-
validate
final FileCitationAnnotation validate()
-
builder
final static FileCitationAnnotation.Builder builder()
Returns a mutable builder for constructing an instance of FileCitationAnnotation.
The following fields are required:
.endIndex() .fileCitation() .startIndex() .text()
-
-
-
-