Annotation¶
-
class
oci.generative_ai_inference.models.Annotation(**kwargs)¶ Bases:
objectAn 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
typeGets the type of this Annotation. url_citationGets 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: - type (str) – The value to assign to the type property of this Annotation.
- url_citation (oci.generative_ai_inference.models.UrlCitation) – The value to assign to the url_citation property of this Annotation.
-
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
-
url_citation¶ Gets the url_citation of this Annotation.
Returns: The url_citation of this Annotation. Return type: oci.generative_ai_inference.models.UrlCitation
-