
    iy              
       d    d Z ddlZddlmZmZ  edddddd	id
dgdd      Z ee      \  ZZd Zy)a$  
Mock httpx client for Langfuse integration testing.

This module intercepts Langfuse API calls and returns successful mock responses,
allowing full code execution without making actual network calls.

Usage:
    Set LANGFUSE_MOCK=true in environment variables or config to enable mock mode.
    N)MockClientConfigcreate_mock_client_factoryLANGFUSELANGFUSE_MOCKd      statussuccessz.langfuse.comzlangfuse.comFT)nameenv_vardefault_latency_msdefault_status_codedefault_json_dataurl_matcherspatch_async_handlerpatch_sync_clientc                  >    t                t        j                         S )zSCreate and return an httpx.Client instance - the monkey-patch intercepts all calls.)%_create_mock_langfuse_client_internalhttpxClient     /Users/manta/Documents/Projects/TheRoad-I1/.venv/lib/python3.12/site-packages/litellm/integrations/langfuse/langfuse_mock_client.pycreate_mock_langfuse_clientr   '   s    )+<<>r   )	__doc__r   (litellm.integrations.mock_client_factoryr   r   _configr   should_use_langfuse_mockr   r   r   r   <module>r      sa     	+ " w')
r   