ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�Message� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sJ e Zd ZdZdd� Zedd� �Zejdd� �Zdd� Zd d � Z dd� Z d S )�UserMessagez7 Represents a single instance of user message. c K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS ) a\ Initializes a new UserMessage object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_inference.models.UserMessage.role` attribute of this class is ``USER`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param role: The value to assign to the role property of this UserMessage. Allowed values for this property are: "SYSTEM", "USER", "ASSISTANT" :type role: str :param content: The value to assign to the content property of this UserMessage. :type content: list[oci.generative_ai_inference.models.ChatContent] :param name: The value to assign to the name property of this UserMessage. :type name: str �strzlist[ChatContent])�role�content�namer r r NZUSER)Z swagger_typesZ attribute_mapZ_roleZ_content�_name)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/generative_ai_inference/models/user_message.py�__init__ s ��zUserMessage.__init__c C s | j S )z� Gets the name of this UserMessage. An optional name for the participant. Provides the model information to differentiate between participants of the same role. :return: The name of this UserMessage. :rtype: str �r �r r r r r 7 s zUserMessage.namec C s || _ dS )a Sets the name of this UserMessage. An optional name for the participant. Provides the model information to differentiate between participants of the same role. :param name: The name of this UserMessage. :type: str Nr )r r r r r r C s c C s t | �S �N)r r r r r �__repr__O s zUserMessage.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__R s zUserMessage.__eq__c C s | |k S r r r r r r �__ne__X s zUserMessage.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r s % r N) �messager Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn