ó
    üÞ j£  ã                  ó@   • S r SSKJr  SSKJr  SSKJr  \SS j5       rg)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                ó@   •  SSK Jn  U" U 5      $ ! [         a     gf = f)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     Ú^/var/www/html/gaurav/venv/lib/python3.13/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   