ruạṛ
a ���f�d � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd Zdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Z e jd9d8� �Z ed:d;� �Z!e!jd<d;� �Z!ed=d>� �Z"e"jd?d>� �Z"ed@dA� �Z#e#jdBdA� �Z#edCdD� �Z$e$jdEdD� �Z$edFdG� �Z%e%jdHdG� �Z%edIdJ� �Z&e&jdKdJ� �Z&edLdM� �Z'e'jdNdM� �Z'dOdP� Z(dQdR� Z)dSdT� Z*dUS )V�Modela� You can create a custom model by using your dataset to fine-tune an out-of-the-box text generation base model. Have your dataset ready before you create a custom model. See `Training Data Requirements`__. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See `Getting Started with Policies`__ and `Getting Access to Generative AI Resouces`__. __ https://docs.cloud.oracle.com/iaas/Content/generative-ai/training-data-requirements.htm __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm __ https://docs.cloud.oracle.com/iaas/Content/generative-ai/iam-policies.htm �TEXT_GENERATION�TEXT_SUMMARIZATION�TEXT_EMBEDDINGS� FINE_TUNE�CHAT�ACTIVE�CREATING�DELETING�DELETED�FAILED�BASE�CUSTOMc K s� dddddddddddddddddddd d d �| _ ddd ddddddddddddddddddd �| _d | _d | _d | _d | _d | _d | _d | _d | _ d | _ d | _d | _d | _ d | _d | _d | _d | _d | _d | _d | _d | _d | _d S )!ak Initializes a new Model object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this Model. :type id: str :param description: The value to assign to the description property of this Model. :type description: str :param compartment_id: The value to assign to the compartment_id property of this Model. :type compartment_id: str :param capabilities: The value to assign to the capabilities property of this Model. Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type capabilities: list[str] :param lifecycle_state: The value to assign to the lifecycle_state property of this Model. Allowed values for this property are: "ACTIVE", "CREATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this Model. :type lifecycle_details: str :param vendor: The value to assign to the vendor property of this Model. :type vendor: str :param version: The value to assign to the version property of this Model. :type version: str :param display_name: The value to assign to the display_name property of this Model. :type display_name: str :param time_created: The value to assign to the time_created property of this Model. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Model. :type time_updated: datetime :param base_model_id: The value to assign to the base_model_id property of this Model. :type base_model_id: str :param type: The value to assign to the type property of this Model. Allowed values for this property are: "BASE", "CUSTOM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param fine_tune_details: The value to assign to the fine_tune_details property of this Model. :type fine_tune_details: oci.generative_ai.models.FineTuneDetails :param model_metrics: The value to assign to the model_metrics property of this Model. :type model_metrics: oci.generative_ai.models.ModelMetrics :param is_long_term_supported: The value to assign to the is_long_term_supported property of this Model. :type is_long_term_supported: bool :param time_deprecated: The value to assign to the time_deprecated property of this Model. :type time_deprecated: datetime :param previous_state: The value to assign to the previous_state property of this Model. :type previous_state: oci.generative_ai.models.Model :param freeform_tags: The value to assign to the freeform_tags property of this Model. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this Model. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this Model. :type system_tags: dict(str, dict(str, object)) �strz list[str]ZdatetimeZFineTuneDetailsZModelMetrics�boolr zdict(str, str)zdict(str, dict(str, object)))�id�description�compartment_id�capabilities�lifecycle_state�lifecycle_details�vendor�version�display_name�time_created�time_updated� base_model_id�type�fine_tune_details� model_metrics�is_long_term_supported�time_deprecated�previous_state� freeform_tags�defined_tags�system_tagsr r Z compartmentIdr ZlifecycleStateZlifecycleDetailsr r ZdisplayNameZtimeCreatedZtimeUpdatedZbaseModelIdr! ZfineTuneDetailsZmodelMetricsZisLongTermSupportedZtimeDeprecatedZ previousStateZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_description�_compartment_id� _capabilities�_lifecycle_state�_lifecycle_details�_vendor�_version� _display_name� _time_created� _time_updated�_base_model_id�_type�_fine_tune_details�_model_metrics�_is_long_term_supported�_time_deprecated�_previous_state�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rA �B/usr/lib/python3.9/site-packages/oci/generative_ai/models/model.py�__init__I s� a��zModel.__init__c C s | j S )z� **[Required]** Gets the id of this Model. An ID that uniquely identifies a pretrained or fine-tuned model. :return: The id of this Model. :rtype: str �r* �r? rA rA rB r � s zModel.idc C s || _ dS )z� Sets the id of this Model. An ID that uniquely identifies a pretrained or fine-tuned model. :param id: The id of this Model. :type: str NrD )r? r rA rA rB r � s c C s | j S )z� Gets the description of this Model. An optional description of the model. :return: The description of this Model. :rtype: str �r+ rE rA rA rB r s zModel.descriptionc C s || _ dS )z� Sets the description of this Model. An optional description of the model. :param description: The description of this Model. :type: str NrF )r? r rA rA rB r s c C s | j S )z� **[Required]** Gets the compartment_id of this Model. The compartment OCID for fine-tuned models. For pretrained models, this value is null. :return: The compartment_id of this Model. :rtype: str �r, rE rA rA rB r s zModel.compartment_idc C s || _ dS )z� Sets the compartment_id of this Model. The compartment OCID for fine-tuned models. For pretrained models, this value is null. :param compartment_id: The compartment_id of this Model. :type: str NrG )r? r rA rA rB r + s c C s | j S )a� **[Required]** Gets the capabilities of this Model. Describes what this model can be used for. Allowed values for items in this list are: "TEXT_GENERATION", "TEXT_SUMMARIZATION", "TEXT_EMBEDDINGS", "FINE_TUNE", "CHAT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The capabilities of this Model. :rtype: list[str] �r- rE rA rA rB r 7 s zModel.capabilitiesc s0 g d�� |r&� fdd�|D �|dd�<