Team Ai
Apppublic

Yash030/claude-code-proxy

sourceHugging Faceupdated 5mo agoView on Hugging Face
2likes
anthropic.cpython-314.pyc53 linesDownload Raw Back to __pycache__
1+
2�Ej����Rt^RIHt^RIHtHt^RIHtHtH	t	!RR]4t3!RR]4t!RR	]4t!R4R]4t
!RR
]4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4t!R R!]4t!R"R#]4t!R$R%]4tR&#)'z2Pydantic models for Anthropic-compatible requests.)�StrEnum)�Any�Literal)�	BaseModel�5ConfigDict�Fieldc�"�]tRt^tRtRtRtRtR#)�Role�user�	assistant�system�N)�__name__�6__module__�__qualname__�__firstlineno__r7rr�__static_attributes__r
��<C:\Users\yashw\.claude\temp-hf-clone\api\models\anthropic.pyr	r	s���D��I�
�Frr	c�,�]tRt^tRt]!RR7tRtR#)�_AnthropicBlockBasezLPass through provider fields (e.g. ``cache_control``) for native transports.�allow��extrar
N)rrrr�__doc__r�model_configrr
rrrrs��V��G�,�Lrrc�,a�]tRt^toV3RltRtVtR#)�ContentBlockTextc�@<�V^8�dQh/S[R,;R&S[;R&#���text�type�r�str)�format�
__classdict__s"�r�__annotate__�ContentBlockText.__annotate__�����8�&�/���9
�I�rr
N�rrrr�__annotate_func__r�__classdictcell__�r&s@rrr�����rrc�,a�]tRt^toV3RltRtVtR#)�ContentBlockImagec�V<�V^8�dQh/S[R,;R&S[S[S[3,;R&#)r �imager"�source)r�dictr$r)r%r&s"�rr'�ContentBlockImage.__annotate__s(����10�'�11�����c��N��rr
Nr*r-s@rr0r0r.rr0c�,a�]tRt^"toV3RltRtVtR#)�ContentBlockToolUsec�n<�V^8�dQh/S[R,;R&S[;R&S[;R&S[S[S[3,;R&#)r �tool_user"�id�name�input�rr$r4r)r%r&s"�rr'� ContentBlockToolUse.__annotate__"s@����12�*�13����G���I����S��>��	rr
Nr*r-s@rr7r7"r.rr7c�,a�]tRt^)toV3RltRtVtR#)�ContentBlockToolResultc�<�V^8�dQh/S[R,;R&S[;R&S[S[S[,,S[S[S[3,,;R&#)r �tool_resultr"�tool_use_id�content)rr$�listrr4)r%r&s"�rr'�#ContentBlockToolResult.__annotate__)sB����14�-�15 � ������4��9�_�t�C��H�~�
-�-�rr
Nr*r-s@rr@r@)r.rr@c�0a�]tRt^/toRtV3RltRtVtR#)�ContentBlockThinkingNc�Z<�V^8�dQh/S[R,;R&S[;R&S[R,;R&#)r �thinkingr"N�	signaturer#)r%r&s"�rr'�!ContentBlockThinking.__annotate__/s0����16�*�17����M���T�z� �rr
)rrrrrKr+rr,r-s@rrHrH/s����!�I��rrHc�,a�]tRt^5toV3RltRtVtR#)�ContentBlockRedactedThinkingc�@<�V^8�dQh/S[R,;R&S[;R&#)r �redacted_thinkingr"�datar#)r%r&s"�rr'�)ContentBlockRedactedThinking.__annotate__5s ����18�%�19&�&��20
�I�rr
Nr*r-s@rrNrN5r.rrNc�0a�]tRt^:toRtV3RltRtVtR#)�ContentBlockServerToolUsezKAnthropic server-side tool invocation (e.g. ``web_search``, ``web_fetch``).c�n<�V^8�dQh/S[R,;R&S[;R&S[;R&S[S[S[3,;R&#)r �server_tool_user"r:r;r<r=)r%r&s"�rr'�&ContentBlockServerToolUse.__annotate__:sE�����#�21$�$��	�G�	�22�I����S��>��
rr
N)rrrrrr+rr,r-s@rrTrT:s����U��rrTc�,a�]tRt^CtoV3RltRtVtR#)�ContentBlockWebSearchToolResultc�L<�V^8�dQh/S[R,;R&S[;R&S[;R&#)r �web_search_tool_resultr"rCrD�rr$r)r%r&s"�rr'�,ContentBlockWebSearchToolResult.__annotate__Cs-����23�*�24+�+������L�rr
Nr*r-s@rrYrYCr.rrYc�,a�]tRt^ItoV3RltRtVtR#)�ContentBlockWebFetchToolResultc�L<�V^8�dQh/S[R,;R&S[;R&S[;R&#)r �web_fetch_tool_resultr"rCrDr\)r%r&s"�rr'�+ContentBlockWebFetchToolResult.__annotate__Is-����25�)�26*�*������L�rr
Nr*r-s@rr_r_Ir.rr_c�,a�]tRt^OtoV3RltRtVtR#)�
SystemContentc�@<�V^8�dQh/S[R,;R&S[;R&#rr#)r%r&s"�rr'�SystemContent.__annotate__Or)rr
Nr*r-s@rrdrdOr.rrdc�0a�]tRt^WtoRtV3RltRtVtR#)�MessageNc��<�V^8�dQh/S[R,;R&S[S[S[S[,S[,S[,S[,S[,S[	,S[27,S[,,,;R&S[R,;R&#)r �rolerDN�reasoning_content)r28r)rr$rErr0r7r@rHrNrTrYr_)r%r&s"�rr'�Message.__annotate__Ws�����29�%�30&�&��	�31���
 �!�
"�%�
%�#�	
#�32+�
+�(�

(�.�
.�-�
-�3334�	35�
�� �T�z�(�!rr
)rrrrrkr+rr,r-s@rrhrhWs���� %)��!�rrhc�8a�]tRt^jtoRtRtRtV3RltRtVt	R#)�ToolNc�<�V^8�dQh/S[;R&S[R,;R&S[R,;R&S[S[S[3,R,;R&#)r r;Nr"�description�input_schema)r$r4r)r%r&s"�rr'�Tool.__annotate__jsK����36
�I����*��	�37�t��"���s�C�x�.�4�'�.�
rr
)38rrrrr"rprqr+rr,r-s@rrnrnjs�����D�"�K�*.�L�
�rrnc�8a�]tRt^stoRtRtRtV3RltRtVt	R#)�ThinkingConfigTNc�h<�V^8�dQh/S[R,;R&S[R,;R&S[R,;R&#)r N�enabledr"�
budget_tokens)�boolr$�int)r%r&s"�rr'�ThinkingConfig.__annotate__ss4����
�D�[���39
��*�����:�$�rr
)40rrrrrvr"rwr+rr,r-s@rrtrtss�����G��D� $�M��rrtc�a�]tRt^|to]!RR7t]!RRR7t]!RRR7tRt	Rt41RtRtRt
RtRtRtRtRtRtRtRtRtRtV3RltRtVtR#)�MessagesRequestrrNT��default�excludec��<�V^8�dQh/S[;R&S[R,;R&S[R,;R&S[R,;R&S[S[,;R&S[S[S[,,R,;R&S[S[,R,;R&S[R,;R	&S[R,;R42&S[R,;R&S[R,;R&S[S[S[3,R,;R
&S[S[	,R,;R&S[S[S[3,R,;R&S[43R,;R&S[S[S[3,R,;R&S[S[S[3,R,;R&S[S[S[S[3,,R,;R&S[S[S[3,R,;R&#)r �modelN�original_model�resolved_provider_model�44max_tokens�messagesr�stop_sequences�stream�temperature�top_p�top_k�metadata�tools�tool_choicerJ�context_management�
output_config�mcp_servers�45extra_body)r$ryrErhrdrx�floatr4rrnrt)r%r&s"�rr'�MessagesRequest.__annotate__|s������J��46�$�J�B��!�4�Z�K�
��d�47�!���7�m���
�$�}�%�%��,�3����I��$�+��
�4�K������$���4�<�����:����3��8�n�t�#�*�� ��:���#�!�"�c�3�h��$�&�-�#�$�t�#�*�%�(�S�#�X���-�4�)�*��S��>�D�(�/�+�,�d�3��8�n�%��,�3�-�.�S�#�X���%�,�/rr
)rrrrrrrr�r�r�rr�r�r�r�r�r�r�r�rJr�r�r�r�r+rr,r-s@rr|r||s}�����G�,�L�"'�t�T�!B�N�*/��d�*K��!�J�/3�F�'+�N��F� $�K��E��E�&*�H�#�E�)-�K�&*�H�04��+/�M�/3�K�(,�J�/�rr|c�a�]tRt^�to]!RR7t]!RRR7t]!RRR7tRt	Rt48RtRtRt
RtRtV3RltRtVtR#)�TokenCountRequestrrNTr}c��<�V^8�dQh/S[;R&S[R,;R&S[R,;R&S[S[,;R&S[S[S[,,R,;R&S[S[,R,;R&S[R,;R&S[S[S[3,R,;R	&S[S[S[3,R,;R49&S[S[S[3,R,;R&S[S[S[S[3,,R,;R&#)
r r�Nr�r�r�rr�rJr�r�r�r�)r$rErhrdrnrtr4r)r%r&s"�rr'�TokenCountRequest.__annotate__�s������J���$�J�B�	�50!�4�Z�K���7�m��
�
�$�}�%�%��,�3����:���#���t�#�*���c�3�h��$�&�-���S�#�X���-�4����S��>�D�(�/���d�3��8�n�%��,�3�rr
)rrrrrrrr�r�rr�rJr�r�r�r�r+rr,r-s@rr�r��sU�����G�,�L�"'�t�T�!B�N�*/��d�*K��/3�F�#�E�&*�H�)-�K�04��+/�M�/3�K��rr�N)r�enumr�typingrr�pydanticrrrr	rrr0r7r@rHrNrTrYr_rdrhrnrtr|r�r
rr�<module>r�s���8���1�1��7��-�)�-��*��51�+��52�-��.�0�.�!�.�!��#6��53� 3���&9���%8���'��)�i�)�&/��/�%�Y�%�-�i�-�4
4�	�
4r