o
    òh¤  ã                   @   sR   d dl mZ d dlmZ eG dd„ dƒƒZeeeeef   Zeeeef  Z	dS )é    )Ú	dataclass)ÚOptionalc                   @   s:   e Zd ZU dZeed< dZee ed< dZ	ee
 ed< dS )ÚLogprobzìInfos for supporting OpenAI compatible logprobs and token ranks.

    Attributes:
        logprob: The logprob of chosen token
        rank: The vocab rank of chosen token (>=1)
        decoded_token: The decoded chosen token index
    ZlogprobNÚrankÚdecoded_token)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚfloatÚ__annotations__r   r   Úintr   Ústr© r   r   ú8/usr/local/lib/python3.10/site-packages/vllm/logprobs.pyr   
   s
   
 r   N)
Údataclassesr   Útypingr   r   ÚlistÚdictr   ZPromptLogprobsZSampleLogprobsr   r   r   r   Ú<module>   s   