ruạṛ
a ���f# � @ 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 @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )�TokenLikelihoodzV An object that contains the returned token and its corresponding likelihood. c K s( ddd�| _ ddd�| _d| _d| _dS )a� Initializes a new TokenLikelihood object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param token: The value to assign to the token property of this TokenLikelihood. :type token: str :param likelihood: The value to assign to the likelihood property of this TokenLikelihood. :type likelihood: float �str�float)�token� likelihoodr r N)Z swagger_typesZ attribute_map�_token�_likelihood)�self�kwargs� r �W/usr/lib/python3.9/site-packages/oci/generative_ai_inference/models/token_likelihood.py�__init__ s ��zTokenLikelihood.__init__c C s | j S )a} Gets the token of this TokenLikelihood. A word, part of a word, or a punctuation. For example, apple is a token and friendship is made up of two tokens, friend and ship. When you run a model, you can set the maximum number of output tokens. Estimate three tokens per word. :return: The token of this TokenLikelihood. :rtype: str �r �r r r r r - s zTokenLikelihood.tokenc C s || _ dS )a� Sets the token of this TokenLikelihood. A word, part of a word, or a punctuation. For example, apple is a token and friendship is made up of two tokens, friend and ship. When you run a model, you can set the maximum number of output tokens. Estimate three tokens per word. :param token: The token of this TokenLikelihood. :type: str Nr )r r r r r r ; s c C s | j S )z� Gets the likelihood of this TokenLikelihood. The likelihood of this token during generation. :return: The likelihood of this TokenLikelihood. :rtype: float �r r r r r r I s zTokenLikelihood.likelihoodc C s || _ dS )z� Sets the likelihood of this TokenLikelihood. The likelihood of this token during generation. :param likelihood: The likelihood of this TokenLikelihood. :type: float Nr )r r r r r r U s c C s t | �S �N)r r r r r �__repr__a s zTokenLikelihood.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__d s zTokenLikelihood.__eq__c C s | |k S r r r r r r �__ne__j s zTokenLikelihood.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn