Home / Class/ AsyncAnthropicWithRawResponse Class — anthropic-sdk-python Architecture

AsyncAnthropicWithRawResponse Class — anthropic-sdk-python Architecture

Architecture documentation for the AsyncAnthropicWithRawResponse class in _client.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  42107385_fd68_0e8d_3beb_feca4c722a10["AsyncAnthropicWithRawResponse"]
  3a4e7de9_0222_597c_a697_7ff97bd0dafc["_client.py"]
  42107385_fd68_0e8d_3beb_feca4c722a10 -->|defined in| 3a4e7de9_0222_597c_a697_7ff97bd0dafc
  8987d560_f4ec_1552_6695_f80c1dd5f264["__init__()"]
  42107385_fd68_0e8d_3beb_feca4c722a10 -->|method| 8987d560_f4ec_1552_6695_f80c1dd5f264
  5e59a230_79b9_5ebb_1096_af515c3ea546["completions()"]
  42107385_fd68_0e8d_3beb_feca4c722a10 -->|method| 5e59a230_79b9_5ebb_1096_af515c3ea546
  ae429cbe_6831_2f16_0445_8a2b8f01d6b8["messages()"]
  42107385_fd68_0e8d_3beb_feca4c722a10 -->|method| ae429cbe_6831_2f16_0445_8a2b8f01d6b8
  41e49ff8_d07e_006a_69d8_6ce2fe5ad369["models()"]
  42107385_fd68_0e8d_3beb_feca4c722a10 -->|method| 41e49ff8_d07e_006a_69d8_6ce2fe5ad369
  c0384d63_302f_3156_4c29_011f8ac71b55["beta()"]
  42107385_fd68_0e8d_3beb_feca4c722a10 -->|method| c0384d63_302f_3156_4c29_011f8ac71b55

Relationship Graph

Source Code

src/anthropic/_client.py lines 558–586

class AsyncAnthropicWithRawResponse:
    _client: AsyncAnthropic

    def __init__(self, client: AsyncAnthropic) -> None:
        self._client = client

    @cached_property
    def completions(self) -> completions.AsyncCompletionsWithRawResponse:
        from .resources.completions import AsyncCompletionsWithRawResponse

        return AsyncCompletionsWithRawResponse(self._client.completions)

    @cached_property
    def messages(self) -> messages.AsyncMessagesWithRawResponse:
        from .resources.messages import AsyncMessagesWithRawResponse

        return AsyncMessagesWithRawResponse(self._client.messages)

    @cached_property
    def models(self) -> models.AsyncModelsWithRawResponse:
        from .resources.models import AsyncModelsWithRawResponse

        return AsyncModelsWithRawResponse(self._client.models)

    @cached_property
    def beta(self) -> beta.AsyncBetaWithRawResponse:
        from .resources.beta import AsyncBetaWithRawResponse

        return AsyncBetaWithRawResponse(self._client.beta)

Frequently Asked Questions

What is the AsyncAnthropicWithRawResponse class?
AsyncAnthropicWithRawResponse is a class in the anthropic-sdk-python codebase, defined in src/anthropic/_client.py.
Where is AsyncAnthropicWithRawResponse defined?
AsyncAnthropicWithRawResponse is defined in src/anthropic/_client.py at line 558.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free