Class CohereCitationV2.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.model.CohereCitationV2.Builder
-
- Enclosing class:
- CohereCitationV2
public static class CohereCitationV2.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CohereCitationV2build()CohereCitationV2.BuildercontentIndex(Integer contentIndex)Index of the content block in which this citation appears.CohereCitationV2.Buildercopy(CohereCitationV2 model)CohereCitationV2.Builderend(Integer end)End index of the cited snippet in the original source text.CohereCitationV2.Buildersources(List<CohereCitationSourceV2> sources)List of source objects for this citation.CohereCitationV2.Builderstart(Integer start)Start index of the cited snippet in the original source text.CohereCitationV2.Buildertext(String text)Text snippet that is being cited.CohereCitationV2.Buildertype(CohereCitationV2.Type type)The type of citation indicating what part of the response it is for.
-
-
-
Method Detail
-
start
public CohereCitationV2.Builder start(Integer start)
Start index of the cited snippet in the original source text.- Parameters:
start- the value to set- Returns:
- this builder
-
end
public CohereCitationV2.Builder end(Integer end)
End index of the cited snippet in the original source text.- Parameters:
end- the value to set- Returns:
- this builder
-
text
public CohereCitationV2.Builder text(String text)
Text snippet that is being cited.- Parameters:
text- the value to set- Returns:
- this builder
-
contentIndex
public CohereCitationV2.Builder contentIndex(Integer contentIndex)
Index of the content block in which this citation appears.- Parameters:
contentIndex- the value to set- Returns:
- this builder
-
type
public CohereCitationV2.Builder type(CohereCitationV2.Type type)
The type of citation indicating what part of the response it is for.- Parameters:
type- the value to set- Returns:
- this builder
-
sources
public CohereCitationV2.Builder sources(List<CohereCitationSourceV2> sources)
List of source objects for this citation.- Parameters:
sources- the value to set- Returns:
- this builder
-
build
public CohereCitationV2 build()
-
copy
public CohereCitationV2.Builder copy(CohereCitationV2 model)
-
-