Show / Hide Table of Contents

Class CohereCitationV2

A source reference or citation for a piece of content.

Inheritance
object
CohereCitationV2
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class CohereCitationV2

Properties

ContentIndex

Declaration
[JsonProperty(PropertyName = "contentIndex")]
public int? ContentIndex { get; set; }
Property Value
Type Description
int?

Index of the content block in which this citation appears.

End

Declaration
[JsonProperty(PropertyName = "end")]
public int? End { get; set; }
Property Value
Type Description
int?

End index of the cited snippet in the original source text.

Sources

Declaration
[JsonProperty(PropertyName = "sources")]
public List<CohereCitationSourceV2> Sources { get; set; }
Property Value
Type Description
List<CohereCitationSourceV2>

List of source objects for this citation.

Start

Declaration
[JsonProperty(PropertyName = "start")]
public int? Start { get; set; }
Property Value
Type Description
int?

Start index of the cited snippet in the original source text.

Text

Declaration
[JsonProperty(PropertyName = "text")]
public string Text { get; set; }
Property Value
Type Description
string

Text snippet that is being cited.

Type

Declaration
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(ResponseEnumConverter))]
public CohereCitationV2.TypeEnum? Type { get; set; }
Property Value
Type Description
CohereCitationV2.TypeEnum?

The type of citation indicating what part of the response it is for.

In this article
Back to top