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

Beta Class — anthropic-sdk-python Architecture

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

Entity Profile

Dependency Diagram

graph TD
  b803cef5_e7f2_93b7_3565_b4b0dad7daef["Beta"]
  32bd9d9e_8b62_b229_7718_45771b424c40["SyncAPIResource"]
  b803cef5_e7f2_93b7_3565_b4b0dad7daef -->|extends| 32bd9d9e_8b62_b229_7718_45771b424c40
  fcb8b576_e5db_1acf_9312_20be91e2e300["_beta.py"]
  b803cef5_e7f2_93b7_3565_b4b0dad7daef -->|defined in| fcb8b576_e5db_1acf_9312_20be91e2e300
  c581f4b8_899d_e1b0_e500_c5a13c63cd5e["messages()"]
  b803cef5_e7f2_93b7_3565_b4b0dad7daef -->|method| c581f4b8_899d_e1b0_e500_c5a13c63cd5e
  a104dafd_38b5_1d54_f8c2_a20ba5030b00["with_raw_response()"]
  b803cef5_e7f2_93b7_3565_b4b0dad7daef -->|method| a104dafd_38b5_1d54_f8c2_a20ba5030b00
  b004753a_ce37_589f_e0aa_9223b099963d["with_streaming_response()"]
  b803cef5_e7f2_93b7_3565_b4b0dad7daef -->|method| b004753a_ce37_589f_e0aa_9223b099963d

Relationship Graph

Source Code

src/anthropic/lib/bedrock/_beta.py lines 19–41

class Beta(SyncAPIResource):
    @cached_property
    def messages(self) -> Messages:
        return Messages(self._client)

    @cached_property
    def with_raw_response(self) -> BetaWithRawResponse:
        """
        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 BetaWithRawResponse(self)

    @cached_property
    def with_streaming_response(self) -> BetaWithStreamingResponse:
        """
        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 BetaWithStreamingResponse(self)

Extends

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free