Package version:

Interface MessageTextUrlCitationAnnotation

A citation within the message that points to a specific URL associated with the message. Generated when the agent uses tools such as 'bing_grounding' to search the Internet.

interface MessageTextUrlCitationAnnotation {
    endIndex?: number;
    startIndex?: number;
    text: string;
    type: "url_citation";
    urlCitation: MessageTextUrlCitationDetails;
}

Hierarchy (view full)

Properties

endIndex?: number

The last text index associated with this text annotation.

startIndex?: number

The first text index associated with this text annotation.

text: string

The textual content associated with this text annotation item.

type

The object type, which is always 'url_citation'.

The details of the URL citation.