§
    ~Štj£  ã                  óF   — d Z ddlmZ ddlmZ ddlmZ edd	„¦   «         Zd
S )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)ÚOptionalÚpackage_nameÚstrÚreturnúOptional[str]c                óH   — 	 ddl m}  || ¦  «        S # t          $ r Y dS 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)r   r   s     úb/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/langsmith/_internal/_package_version.pyÚget_package_versionr      sK   € ðØ.Ð.Ð.Ð.Ð.Ð.àˆw�|Ñ$Ô$Ð$øÝð ð ð Øˆtˆtðøøøs   ‚ “
! !N)r   r   r   r	   )Ú__doc__Ú
__future__r   Ú	functoolsr   Útypingr   r   © ó    r   ú<module>r      sq   ððð ð #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð ðð ð ñ „ðð ð r   