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

AsyncBeta Class — anthropic-sdk-python Architecture

Architecture documentation for the AsyncBeta class in _beta.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  89b7a5c3_e0ee_08cb_29c0_c570ef6cc7a6["AsyncBeta"]
  f98629a5_73f4_23f2_1f7f_c8db837848d1["AsyncAPIResource"]
  89b7a5c3_e0ee_08cb_29c0_c570ef6cc7a6 -->|extends| f98629a5_73f4_23f2_1f7f_c8db837848d1
  fcb8b576_e5db_1acf_9312_20be91e2e300["_beta.py"]
  89b7a5c3_e0ee_08cb_29c0_c570ef6cc7a6 -->|defined in| fcb8b576_e5db_1acf_9312_20be91e2e300
  f1b5bcfa_5a8a_34cb_8a18_de7d6822d0e7["messages()"]
  89b7a5c3_e0ee_08cb_29c0_c570ef6cc7a6 -->|method| f1b5bcfa_5a8a_34cb_8a18_de7d6822d0e7
  ca2b910c_4db1_10fe_d00e_0acc0d1f82ec["with_raw_response()"]
  89b7a5c3_e0ee_08cb_29c0_c570ef6cc7a6 -->|method| ca2b910c_4db1_10fe_d00e_0acc0d1f82ec
  125d81e0_582d_a622_e626_f66495113f7c["with_streaming_response()"]
  89b7a5c3_e0ee_08cb_29c0_c570ef6cc7a6 -->|method| 125d81e0_582d_a622_e626_f66495113f7c

Relationship Graph

Source Code

src/anthropic/lib/bedrock/_beta.py lines 44–66

class AsyncBeta(AsyncAPIResource):
    @cached_property
    def messages(self) -> AsyncMessages:
        return AsyncMessages(self._client)

    @cached_property
    def with_raw_response(self) -> AsyncBetaWithRawResponse:
        """
        This property can be used as a prefix for any HTTP method call to return the
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
        """
        return AsyncBetaWithRawResponse(self)

    @cached_property
    def with_streaming_response(self) -> AsyncBetaWithStreamingResponse:
        """
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/anthropics/anthropic-sdk-python#with_streaming_response
        """
        return AsyncBetaWithStreamingResponse(self)

Frequently Asked Questions

What is the AsyncBeta class?
AsyncBeta is a class in the anthropic-sdk-python codebase, defined in src/anthropic/lib/bedrock/_beta.py.
Where is AsyncBeta defined?
AsyncBeta is defined in src/anthropic/lib/bedrock/_beta.py at line 44.
What does AsyncBeta extend?
AsyncBeta extends AsyncAPIResource.

Analyze Your Own Codebase

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

Try Supermodel Free