MessageContent¶
-
class
oci.generative_ai_agent_runtime.models.MessageContent(**kwargs)¶ Bases:
objectThe content of the message.
Methods
__init__(**kwargs)Initializes a new MessageContent object with values from keyword arguments. Attributes
citationsGets the citations of this MessageContent. paragraph_citationsGets the paragraph_citations of this MessageContent. text[Required] Gets the text of this MessageContent. -
__init__(**kwargs)¶ Initializes a new MessageContent object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - text (str) – The value to assign to the text property of this MessageContent.
- citations (list[oci.generative_ai_agent_runtime.models.Citation]) – The value to assign to the citations property of this MessageContent.
- paragraph_citations (list[oci.generative_ai_agent_runtime.models.ParagraphCitation]) – The value to assign to the paragraph_citations property of this MessageContent.
-
citations¶ Gets the citations of this MessageContent. Citations to data sources used for generating an agent’s message.
Returns: The citations of this MessageContent. Return type: list[oci.generative_ai_agent_runtime.models.Citation]
-
paragraph_citations¶ Gets the paragraph_citations of this MessageContent. A list of citations used to generate the paragraphs of the agent message.
Returns: The paragraph_citations of this MessageContent. Return type: list[oci.generative_ai_agent_runtime.models.ParagraphCitation]
-
text¶ [Required] Gets the text of this MessageContent. The content of the message.
Returns: The text of this MessageContent. Return type: str
-