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 ed21e472_8d52_b206_9c6d_e0ee6418c309["Beta"] 32bd9d9e_8b62_b229_7718_45771b424c40["SyncAPIResource"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|extends| 32bd9d9e_8b62_b229_7718_45771b424c40 0eaba4b3_9f2d_ace9_806f_c3ed27e4126f["beta.py"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|defined in| 0eaba4b3_9f2d_ace9_806f_c3ed27e4126f 46911d4e_891a_f9a5_e3e1_386d8ca5647b["models()"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|method| 46911d4e_891a_f9a5_e3e1_386d8ca5647b c83dc5b0_2cde_1592_29fb_b4a02458c43a["messages()"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|method| c83dc5b0_2cde_1592_29fb_b4a02458c43a 6f313ca5_6323_77ab_1a38_da44e1791971["files()"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|method| 6f313ca5_6323_77ab_1a38_da44e1791971 e1b6259e_7ef8_d8fc_daed_5ecdac300466["skills()"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|method| e1b6259e_7ef8_d8fc_daed_5ecdac300466 a3ebcab0_87b3_4317_7344_f6720e1c3d1d["with_raw_response()"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|method| a3ebcab0_87b3_4317_7344_f6720e1c3d1d fef27467_b05e_2560_8ede_d6bdab3da45b["with_streaming_response()"] ed21e472_8d52_b206_9c6d_e0ee6418c309 -->|method| fef27467_b05e_2560_8ede_d6bdab3da45b
Relationship Graph
Source Code
src/anthropic/resources/beta/beta.py lines 43–77
class Beta(SyncAPIResource):
@cached_property
def models(self) -> Models:
return Models(self._client)
@cached_property
def messages(self) -> Messages:
return Messages(self._client)
@cached_property
def files(self) -> Files:
return Files(self._client)
@cached_property
def skills(self) -> Skills:
return Skills(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 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/resources/beta/beta.py.
Where is Beta defined?
Beta is defined in src/anthropic/resources/beta/beta.py at line 43.
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