ó
    °"³j  ã                  ó¼   • % S r SSKJr  SSKJrJr  SSKJrJrJ	r	  SSK
JrJrJr  SSKJr  SS	KJr  SS
KJr  S/r\	 " S S\5      5       r\\\4   rS\S'    SS jrg)zQSerializing SDK tool objects into the `tools[]` entries the Messages API accepts.é    )Úannotations)ÚUnionÚIterable)ÚProtocolÚ	TypeAliasÚruntime_checkableé   )ÚOmitÚNotGivenÚomit)Úis_givené   )Úcarry_helper_tag)ÚBetaToolUnionParamÚBetaToolLikec                  ó"   • \ rS rSrSrSS jrSrg)ÚSupportsToDicté   z³An object whose `to_dict()` is the `tools[]` entry to send for it.

`@beta_tool` function tools and builtin tools satisfy this, as does anything else
with a matching `to_dict()`.
c                ó   • g )N© )Úselfs    Ú]/home/mande/repo/quber/.venv/lib/python3.13/site-packages/anthropic/lib/tools/_tool_params.pyÚto_dictÚSupportsToDict.to_dict   s   € ¨Só    r   N)Úreturnr   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__static_attributes__r   r   r   r   r      s   † ñ÷ 1r   r   r   c                óº   • [        U 5      (       d  [        $ U  Vs/ s H3  n[        U[        5      (       a  [	        XR                  5       5      OUPM5     sn$ s  snf )zbReplace every `to_dict()`-bearing object in `tools` with its entry, keeping order and helper tags.)r   r   Ú
isinstancer   r   r   )ÚtoolsÚtools     r   Úto_tool_paramsr'      sI   € ä�E�?‰?ÜˆÙmrÓsÒmrÐei´jÀÄ~×6VÑ6VÔ˜T§<¡<£>Ô2Ð\`Ò`ÑmrÑsÐsùÒss   ›:AN)r%   z(Iterable[BetaToolLike] | Omit | NotGivenr   zlist[BetaToolUnionParam] | Omit)r!   Ú
__future__r   Útypingr   r   Útyping_extensionsr   r   r   Ú_typesr
   r   r   Ú_utilsr   Ú_stainless_helpersr   Ú types.beta.beta_tool_union_paramr   Ú__all__r   r   Ú__annotations__r'   r   r   r   Ú<module>r1      sf   ðÚ Wå "ç "ß DÑ Dç *Ñ *Ý Ý 1Ý BàÐ
€ð ô1�Xó 1ó ð1ð  Ð 2°NÐ BÑC€ˆiÓ CØ Qõtr   