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 cd962377_5b75_72bb_f9a9_9885234ea412["Beta"] 32bd9d9e_8b62_b229_7718_45771b424c40["SyncAPIResource"] cd962377_5b75_72bb_f9a9_9885234ea412 -->|extends| 32bd9d9e_8b62_b229_7718_45771b424c40 c67615a5_6c22_f3a8_22e6_6badfeba0703["_beta.py"] cd962377_5b75_72bb_f9a9_9885234ea412 -->|defined in| c67615a5_6c22_f3a8_22e6_6badfeba0703 e0ae68f1_c036_9187_14bf_4a785fa67ff9["messages()"] cd962377_5b75_72bb_f9a9_9885234ea412 -->|method| e0ae68f1_c036_9187_14bf_4a785fa67ff9 eea092c9_4ea3_8109_f93c_9fcfd549d13f["with_raw_response()"] cd962377_5b75_72bb_f9a9_9885234ea412 -->|method| eea092c9_4ea3_8109_f93c_9fcfd549d13f 5e8a5862_2bd4_04ea_6fdb_8ab53b5cb6ef["with_streaming_response()"] cd962377_5b75_72bb_f9a9_9885234ea412 -->|method| 5e8a5862_2bd4_04ea_6fdb_8ab53b5cb6ef
Relationship Graph
Source Code
src/anthropic/lib/vertex/_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)
Domain
Defined In
Extends
Source
Frequently Asked Questions
What is the Beta class?
Beta is a class in the anthropic-sdk-python codebase, defined in src/anthropic/lib/vertex/_beta.py.
Where is Beta defined?
Beta is defined in src/anthropic/lib/vertex/_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