+
    ~j>	                     Z    R t ^ RIt^ RIt^ RIHt ^RIHt ]'       d   ^RIHt R R lt	R# )zz
Helpful utility functions and classes in relation to exploring API endpoints
with the aim for a user-friendly interface.
N)TYPE_CHECKING)ModelCardData)	ModelInfoc                @    V ^8  d   QhRRR\         R\         R\        /# )   
model_infor   minimum_thresholdmaximum_thresholdreturn)floatbool)formats   "{/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/huggingface_hub/utils/endpoint_helpers.py__annotate__r      s0     &D &Dk &De &Dhm &Drv &D    c                   Vf   Vf   \        R4      hVf   RpVf   \        P                  p\        V RR4      pVe   \	        V\
        \        34      '       g   R# VP                  RR4      p\	        V\
        4      '       d
   VR,          pV'       g   R# \        P                  ! R\        V4      4      pVf   R# \        VP                  ^ 4      4      pYu;8*  ;'       d    V8*  # u # )	a  Checks if a model's emission is within a given threshold.

Args:
    model_info (`ModelInfo`):
        A model info object containing the model's emission information.
    minimum_threshold (`float`):
        A minimum carbon threshold to filter by, such as 1.
    maximum_threshold (`float`):
        A maximum carbon threshold to filter by, such as 10.

Returns:
    `bool`: Whether the model's emission is within the given threshold.
NzFBoth `minimum_threshold` and `maximum_threshold` cannot both be `None`	card_dataFco2_eq_emissions	emissionsz\d+\.\d+|\d+)
ValueErrormathinfgetattr
isinstancedictr   getresearchstrr   group)r   r   r	   r   emissionmatchedemission_values   &&&    r   _is_emission_within_thresholdr$      s      %6%>abb   HH
K6I
9t]6K L L }}/6H(D!!K( iiX7G7==+,NCC2CCCCCr   )
__doc__r   r   typingr   repocard_datar   hf_apir   r$    r   r   <module>r*      s&   
  	   ) "&Dr   