Table of Contents

Class InteractionFileCitation

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A file citation (file_citation).

public sealed class InteractionFileCitation : InteractionAnnotation
Inheritance
InteractionFileCitation
Inherited Members
Extension Methods

Constructors

InteractionFileCitation()

Initializes a new instance of the InteractionFileCitation class.

public InteractionFileCitation()

Properties

CustomMetadata

User provided metadata about the retrieved context.

[JsonPropertyName("custom_metadata")]
public JsonObject? CustomMetadata { get; set; }

Property Value

JsonObject

DocumentUri

The URI of the file.

[JsonPropertyName("document_uri")]
public string? DocumentUri { get; set; }

Property Value

string

FileName

The name of the file.

[JsonPropertyName("file_name")]
public string? FileName { get; set; }

Property Value

string

MediaId

Media ID in case of image citations.

[JsonPropertyName("media_id")]
public string? MediaId { get; set; }

Property Value

string

PageNumber

Page number of the cited document.

[JsonPropertyName("page_number")]
public int? PageNumber { get; set; }

Property Value

int?

Source

Source attributed for a portion of the text.

[JsonPropertyName("source")]
public string? Source { get; set; }

Property Value

string