AxCitation Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxCitation.md type AxCitation

AxCitation

TypeScript
type AxCitation = object;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L580

Properties

description?

TypeScript
optional description: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L588


documentIndex?

TypeScript
optional documentIndex: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L603

Position of the cited document in the request’s document list.


documentTitle?

TypeScript
optional documentTitle: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L605

Title of the cited document, when the request supplied one.


endBlockIndex?

TypeScript
optional endBlockIndex: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L619

content_block_location: one past the last block of the cited span.


endCharIndex?

TypeScript
optional endCharIndex: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L611

char_location: one past the last character of the cited span.


endPageNumber?

TypeScript
optional endPageNumber: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L615

page_location: one past the last page of the cited span.


fileId?

TypeScript
optional fileId: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L607

Provider file identifier, when the cited document came from the Files API.


license?

TypeScript
optional license: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L589


mediaId?

TypeScript
optional mediaId: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L593

File Search multimodal (Gemini, May 2026): media chunk id.


pageNumbers?

TypeScript
optional pageNumbers: number[];

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L595

File Search multimodal (Gemini, May 2026): page numbers cited within the source.


publicationDate?

TypeScript
optional publicationDate: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L590


snippet?

TypeScript
optional snippet: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L591


startBlockIndex?

TypeScript
optional startBlockIndex: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L617

content_block_location: first block of the cited span (0-based).


startCharIndex?

TypeScript
optional startCharIndex: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L609

char_location: first character of the cited span.


startPageNumber?

TypeScript
optional startPageNumber: number;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L613

page_location: first page of the cited span (1-based).


title?

TypeScript
optional title: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L587


type?

TypeScript
optional type: "char_location" | "page_location" | "content_block_location";

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L601

Location kind, as reported by the provider. Anthropic document citations use char_location, page_location, or content_block_location; URL citations leave this unset.


url?

TypeScript
optional url: string;

Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/ai/types.ts#L586

Source URL. Present for URL citations (Gemini grounding, Anthropic web search). Absent for Anthropic document citations, which point into a document supplied with the request instead of at a web page.

Docs