Class Citation.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.Citation.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Citation
build()
Citation.Builder
copy(Citation model)
Citation.Builder
documentIds(List<String> documentIds)
Identifiers for the documents cited in the current generated response.Citation.Builder
end(Integer end)
Counting from zero, the index of the text that the citation ends after.Citation.Builder
start(Integer start)
Counting from zero, the index of the text where the citation starts.Citation.Builder
text(String text)
The text of the citation.
-
-
-
Method Detail
-
start
public Citation.Builder start(Integer start)
Counting from zero, the index of the text where the citation starts.- Parameters:
start
- the value to set- Returns:
- this builder
-
end
public Citation.Builder end(Integer end)
Counting from zero, the index of the text that the citation ends after.- Parameters:
end
- the value to set- Returns:
- this builder
-
text
public Citation.Builder text(String text)
The text of the citation.- Parameters:
text
- the value to set- Returns:
- this builder
-
documentIds
public Citation.Builder documentIds(List<String> documentIds)
Identifiers for the documents cited in the current generated response.- Parameters:
documentIds
- the value to set- Returns:
- this builder
-
build
public Citation build()
-
copy
public Citation.Builder copy(Citation model)
-
-