Ë
    ³Œj£  ã                  ó>   — d Z ddlmZ ddlmZ ddlmZ edd„«       Zy)ab  Shared helper for resolving an installed package's version.

Integrations stamp ``ls_integration_version`` with the version of the
third-party framework they trace (e.g. ``pipecat-ai``, ``google-adk``,
``openai-agents``) so LangSmith can attribute traces to the integration and
framework version in use. This is the single implementation they all share.
é    )Úannotations)Úcache)ÚOptionalc                ó>   — 	 ddl m}  || «      S # t        $ r Y yw xY w)u  Installed version of ``package_name``, or ``None`` if unresolvable.

    Cached â€” an installed package's version doesn't change at runtime, and this
    is called once per trace root. Never raises: a missing package or metadata
    just yields ``None``.
    r   )ÚversionN)Úimportlib.metadatar   Ú	Exception)Úpackage_namer   s     ún/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/langsmith/_internal/_package_version.pyÚget_package_versionr      s'   € ðÝ.á�|Ó$Ð$øÜò Ùðús   ‚ �	›N)r
   ÚstrÚreturnzOptional[str])Ú__doc__Ú
__future__r   Ú	functoolsr   Útypingr   r   © ó    r   Ú<module>r      s)   ðñõ #å Ý ð òó ñr   