MessageContent¶
-
class
oci.generative_ai_agent_runtime.models.
MessageContent
(**kwargs)¶ Bases:
object
The content of the message.
Methods
__init__
(**kwargs)Initializes a new MessageContent object with values from keyword arguments. Attributes
citations
Gets the 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.
-
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]
-
text
¶ [Required] Gets the text of this MessageContent. The content of the message.
Returns: The text of this MessageContent. Return type: str
-