Annotation

class oci.generative_ai_inference.models.Annotation(**kwargs)

Bases: object

An annotation attached to the assistant’s message, used to represent additional metadata such as citations.

Methods:

__init__(**kwargs)

Initializes a new Annotation object with values from keyword arguments.

Attributes:

type

Gets the type of this Annotation.

url_citation

Gets the url_citation of this Annotation.

__init__(**kwargs)

Initializes a new Annotation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
property type

Gets the type of this Annotation. Type of annotation. For web search citations, this is url_citation.

Returns

The type of this Annotation.

Return type

str

property url_citation

Gets the url_citation of this Annotation.

Returns

The url_citation of this Annotation.

Return type

oci.generative_ai_inference.models.UrlCitation