
    Ki                          S SK r S SKJr  S SKJr  S SKJr	   " S S\ R                  5      r
 " S S	\ R                  5      r " S
 S\ R                  5      r " S S\ R                  5      rg! \ a	    \" S5      ef = f)    NzMPlease install the Anthropic SDK to use this feature: 'pip install anthropic')WrappedMessages)AsyncWrappedMessages)Clientc                   @   ^  \ rS rSr% Sr\\S'   S\4U 4S jjrSrU =r	$ )AnthropicBedrock   b
A wrapper around the Anthropic Bedrock SDK that automatically sends LLM usage events to PostHog.

_ph_clientposthog_clientc                 R   > [         TU ]  " S0 UD6  Xl        [        U 5      U l        g N super__init__r
   r   messagesselfr   kwargs	__class__s      j/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/posthog/ai/anthropic/anthropic_providers.pyr   AnthropicBedrock.__init__   $    "6"('-    r
   r   
__name__
__module____qualname____firstlineno____doc__PostHogClient__annotations__r   __static_attributes____classcell__r   s   @r   r   r      !     .} . .r   r   c                   @   ^  \ rS rSr% Sr\\S'   S\4U 4S jjrSrU =r	$ )AsyncAnthropicBedrock   r	   r
   r   c                 R   > [         TU ]  " S0 UD6  Xl        [        U 5      U l        g r   r   r   r
   r   r   r   s      r   r   AsyncAnthropicBedrock.__init__!   $    "6"(,T2r   r   r   r&   s   @r   r)   r)      !     3} 3 3r   r)   c                   @   ^  \ rS rSr% Sr\\S'   S\4U 4S jjrSrU =r	$ )AnthropicVertex'   a
A wrapper around the Anthropic Vertex SDK that automatically sends LLM usage events to PostHog.
r
   r   c                 R   > [         TU ]  " S0 UD6  Xl        [        U 5      U l        g r   r   r   s      r   r   AnthropicVertex.__init__.   r   r   r   r   r&   s   @r   r1   r1   '   r'   r   r1   c                   @   ^  \ rS rSr% Sr\\S'   S\4U 4S jjrSrU =r	$ )AsyncAnthropicVertex4   r3   r
   r   c                 R   > [         TU ]  " S0 UD6  Xl        [        U 5      U l        g r   r,   r   s      r   r   AsyncAnthropicVertex.__init__;   r.   r   r   r   r&   s   @r   r7   r7   4   r/   r   r7   )	anthropicImportErrorModuleNotFoundErrorposthog.ai.anthropic.anthropicr   $posthog.ai.anthropic.anthropic_asyncr   posthog.clientr   r"   r   r)   r1   r7   r   r   r   <module>rA      s    ; E 2
.y11 
.
3I;; 
3
.i// 
.
3999 
3c  
W s   A- -A<