HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/mysqlsh/lib/python3.8/site-packages/oci/generative_ai_agent_runtime/models/message_content.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class MessageContent(object):
    """
    The content of the message.
    """

    def __init__(self, **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):

        :param text:
            The value to assign to the text property of this MessageContent.
        :type text: str

        :param citations:
            The value to assign to the citations property of this MessageContent.
        :type citations: list[oci.generative_ai_agent_runtime.models.Citation]

        :param paragraph_citations:
            The value to assign to the paragraph_citations property of this MessageContent.
        :type paragraph_citations: list[oci.generative_ai_agent_runtime.models.ParagraphCitation]

        """
        self.swagger_types = {
            'text': 'str',
            'citations': 'list[Citation]',
            'paragraph_citations': 'list[ParagraphCitation]'
        }
        self.attribute_map = {
            'text': 'text',
            'citations': 'citations',
            'paragraph_citations': 'paragraphCitations'
        }
        self._text = None
        self._citations = None
        self._paragraph_citations = None

    @property
    def text(self):
        """
        **[Required]** Gets the text of this MessageContent.
        The content of the message.


        :return: The text of this MessageContent.
        :rtype: str
        """
        return self._text

    @text.setter
    def text(self, text):
        """
        Sets the text of this MessageContent.
        The content of the message.


        :param text: The text of this MessageContent.
        :type: str
        """
        self._text = text

    @property
    def citations(self):
        """
        Gets the citations of this MessageContent.
        Citations to data sources used for generating an agent's message.


        :return: The citations of this MessageContent.
        :rtype: list[oci.generative_ai_agent_runtime.models.Citation]
        """
        return self._citations

    @citations.setter
    def citations(self, citations):
        """
        Sets the citations of this MessageContent.
        Citations to data sources used for generating an agent's message.


        :param citations: The citations of this MessageContent.
        :type: list[oci.generative_ai_agent_runtime.models.Citation]
        """
        self._citations = citations

    @property
    def paragraph_citations(self):
        """
        Gets the paragraph_citations of this MessageContent.
        A list of citations used to generate the paragraphs of the agent message.


        :return: The paragraph_citations of this MessageContent.
        :rtype: list[oci.generative_ai_agent_runtime.models.ParagraphCitation]
        """
        return self._paragraph_citations

    @paragraph_citations.setter
    def paragraph_citations(self, paragraph_citations):
        """
        Sets the paragraph_citations of this MessageContent.
        A list of citations used to generate the paragraphs of the agent message.


        :param paragraph_citations: The paragraph_citations of this MessageContent.
        :type: list[oci.generative_ai_agent_runtime.models.ParagraphCitation]
        """
        self._paragraph_citations = paragraph_citations

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other