Home / File/ beta.py — anthropic-sdk-python Source File

beta.py — anthropic-sdk-python Source File

Architecture documentation for beta.py, a python file in the anthropic-sdk-python codebase. 18 imports, 1 dependents.

File python AnthropicClient AsyncAPI 18 imports 1 dependents 6 classes

Entity Profile

Dependency Diagram

graph LR
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f["beta.py"]
  8eb6ac96_326e_83d2_aa95_9071b1193d06["files.py"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 8eb6ac96_326e_83d2_aa95_9071b1193d06
  3e08ebfe_73a6_0f3e_2027_4a081297bec5["Files"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 3e08ebfe_73a6_0f3e_2027_4a081297bec5
  e4e596a3_8f28_361a_1681_29f79feb432d["AsyncFiles"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> e4e596a3_8f28_361a_1681_29f79feb432d
  4cdf263b_2b6c_e09b_a0cb_7cf9ada682d9["FilesWithRawResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 4cdf263b_2b6c_e09b_a0cb_7cf9ada682d9
  333a4509_10b6_15b1_c109_940d6e4292b9["AsyncFilesWithRawResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 333a4509_10b6_15b1_c109_940d6e4292b9
  b2f03ffc_e943_37bc_a50c_3cd02a612746["FilesWithStreamingResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> b2f03ffc_e943_37bc_a50c_3cd02a612746
  778a8766_9a48_25f8_b590_a1d2d37897c4["AsyncFilesWithStreamingResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 778a8766_9a48_25f8_b590_a1d2d37897c4
  aaf44c70_9358_3dce_9005_4fb1dbf27b38["models.py"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> aaf44c70_9358_3dce_9005_4fb1dbf27b38
  00e4fd78_09b1_5b6a_8a40_a899317235b8["Models"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 00e4fd78_09b1_5b6a_8a40_a899317235b8
  a6e95d4e_9283_0e25_429d_0380a2f1939e["AsyncModels"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> a6e95d4e_9283_0e25_429d_0380a2f1939e
  2a0c7237_dc86_f81c_c638_07907b87caaa["ModelsWithRawResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 2a0c7237_dc86_f81c_c638_07907b87caaa
  e2f98c2a_531b_b640_5153_9ff266f8eced["AsyncModelsWithRawResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> e2f98c2a_531b_b640_5153_9ff266f8eced
  862daa4e_5a37_14cc_da5b_e8895e592a52["ModelsWithStreamingResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 862daa4e_5a37_14cc_da5b_e8895e592a52
  0172a840_7f94_ad12_0b1f_65aa39423cc2["AsyncModelsWithStreamingResponse"]
  0eaba4b3_9f2d_ace9_806f_c3ed27e4126f --> 0172a840_7f94_ad12_0b1f_65aa39423cc2
  style 0eaba4b3_9f2d_ace9_806f_c3ed27e4126f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from .files import (
    Files,
    AsyncFiles,
    FilesWithRawResponse,
    AsyncFilesWithRawResponse,
    FilesWithStreamingResponse,
    AsyncFilesWithStreamingResponse,
)
from .models import (
    Models,
    AsyncModels,
    ModelsWithRawResponse,
    AsyncModelsWithRawResponse,
    ModelsWithStreamingResponse,
    AsyncModelsWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .skills.skills import (
    Skills,
    AsyncSkills,
    SkillsWithRawResponse,
    AsyncSkillsWithRawResponse,
    SkillsWithStreamingResponse,
    AsyncSkillsWithStreamingResponse,
)
from .messages.messages import (
    Messages,
    AsyncMessages,
    MessagesWithRawResponse,
    AsyncMessagesWithRawResponse,
    MessagesWithStreamingResponse,
    AsyncMessagesWithStreamingResponse,
)

__all__ = ["Beta", "AsyncBeta"]


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
// ... (139 more lines)

Subdomains

Frequently Asked Questions

What does beta.py do?
beta.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain, AsyncAPI subdomain.
What does beta.py depend on?
beta.py imports 18 module(s): AsyncFiles, AsyncFilesWithRawResponse, AsyncFilesWithStreamingResponse, AsyncModels, AsyncModelsWithRawResponse, AsyncModelsWithStreamingResponse, Files, FilesWithRawResponse, and 10 more.
What files import beta.py?
beta.py is imported by 1 file(s): __init__.py.
Where is beta.py in the architecture?
beta.py is located at src/anthropic/resources/beta/beta.py (domain: AnthropicClient, subdomain: AsyncAPI, directory: src/anthropic/resources/beta).

Analyze Your Own Codebase

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

Try Supermodel Free