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

AnthropicWithStreamedResponse Class — anthropic-sdk-python Architecture

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

Entity Profile

Dependency Diagram

graph TD
  c6e32103_634b_1263_9836_2bd55e3bd728["AnthropicWithStreamedResponse"]
  3a4e7de9_0222_597c_a697_7ff97bd0dafc["_client.py"]
  c6e32103_634b_1263_9836_2bd55e3bd728 -->|defined in| 3a4e7de9_0222_597c_a697_7ff97bd0dafc
  586aab52_5e4e_232e_e214_8a1da52711bb["__init__()"]
  c6e32103_634b_1263_9836_2bd55e3bd728 -->|method| 586aab52_5e4e_232e_e214_8a1da52711bb
  3f803b2a_612c_1e0a_0d87_65710b13273f["completions()"]
  c6e32103_634b_1263_9836_2bd55e3bd728 -->|method| 3f803b2a_612c_1e0a_0d87_65710b13273f
  a8b72969_5b17_5b24_ad56_01f5ae4c899e["messages()"]
  c6e32103_634b_1263_9836_2bd55e3bd728 -->|method| a8b72969_5b17_5b24_ad56_01f5ae4c899e
  58d19e3f_3882_f073_e539_2163a2700390["models()"]
  c6e32103_634b_1263_9836_2bd55e3bd728 -->|method| 58d19e3f_3882_f073_e539_2163a2700390
  ed807fa3_056d_63da_c6d5_bff11ac0af77["beta()"]
  c6e32103_634b_1263_9836_2bd55e3bd728 -->|method| ed807fa3_056d_63da_c6d5_bff11ac0af77

Relationship Graph

Source Code

src/anthropic/_client.py lines 589–617

class AnthropicWithStreamedResponse:
    _client: Anthropic

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

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

        return CompletionsWithStreamingResponse(self._client.completions)

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

        return MessagesWithStreamingResponse(self._client.messages)

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

        return ModelsWithStreamingResponse(self._client.models)

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

        return BetaWithStreamingResponse(self._client.beta)

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free