AnthropicWithRawResponse Class — anthropic-sdk-python Architecture
Architecture documentation for the AnthropicWithRawResponse class in _client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD a08f2ab6_c6af_84e9_ae9a_5f363414911d["AnthropicWithRawResponse"] 7475fa67_12ae_d2fb_754e_0ca42ae41132["_client.py"] a08f2ab6_c6af_84e9_ae9a_5f363414911d -->|defined in| 7475fa67_12ae_d2fb_754e_0ca42ae41132 ab343644_7ccd_f1ce_884a_7cebd7cb158d["__init__()"] a08f2ab6_c6af_84e9_ae9a_5f363414911d -->|method| ab343644_7ccd_f1ce_884a_7cebd7cb158d 72115dab_3540_f902_28a1_7241109b41cc["completions()"] a08f2ab6_c6af_84e9_ae9a_5f363414911d -->|method| 72115dab_3540_f902_28a1_7241109b41cc b8e0bf28_c63f_a419_b4cd_53f8c7b7adb8["messages()"] a08f2ab6_c6af_84e9_ae9a_5f363414911d -->|method| b8e0bf28_c63f_a419_b4cd_53f8c7b7adb8 a64ade3f_9295_3d36_1e27_72f0840e63aa["models()"] a08f2ab6_c6af_84e9_ae9a_5f363414911d -->|method| a64ade3f_9295_3d36_1e27_72f0840e63aa 75a3cfed_c702_b9b4_e473_2af83d4eded9["beta()"] a08f2ab6_c6af_84e9_ae9a_5f363414911d -->|method| 75a3cfed_c702_b9b4_e473_2af83d4eded9
Relationship Graph
Source Code
src/anthropic/_client.py lines 527–555
class AnthropicWithRawResponse:
_client: Anthropic
def __init__(self, client: Anthropic) -> None:
self._client = client
@cached_property
def completions(self) -> completions.CompletionsWithRawResponse:
from .resources.completions import CompletionsWithRawResponse
return CompletionsWithRawResponse(self._client.completions)
@cached_property
def messages(self) -> messages.MessagesWithRawResponse:
from .resources.messages import MessagesWithRawResponse
return MessagesWithRawResponse(self._client.messages)
@cached_property
def models(self) -> models.ModelsWithRawResponse:
from .resources.models import ModelsWithRawResponse
return ModelsWithRawResponse(self._client.models)
@cached_property
def beta(self) -> beta.BetaWithRawResponse:
from .resources.beta import BetaWithRawResponse
return BetaWithRawResponse(self._client.beta)
Domain
Defined In
Source
Frequently Asked Questions
What is the AnthropicWithRawResponse class?
AnthropicWithRawResponse is a class in the anthropic-sdk-python codebase, defined in src/anthropic/_client.py.
Where is AnthropicWithRawResponse defined?
AnthropicWithRawResponse is defined in src/anthropic/_client.py at line 527.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free