Home / Class/ ClassWithBetaMethods Class — langchain Architecture

ClassWithBetaMethods Class — langchain Architecture

Architecture documentation for the ClassWithBetaMethods class in test_beta_decorator.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5c678681_d895_9632_3d80_c86a6c1887d1["ClassWithBetaMethods"]
  af0bb3cc_9182_00c9_fc61_39029170b37e["test_beta_decorator.py"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|defined in| af0bb3cc_9182_00c9_fc61_39029170b37e
  d18fa646_046d_82e4_b43f_b8458df260dd["__init__()"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|method| d18fa646_046d_82e4_b43f_b8458df260dd
  33df2ed1_85c9_dac9_5d92_a75fb085e76c["beta_method()"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|method| 33df2ed1_85c9_dac9_5d92_a75fb085e76c
  7d45bba3_4aee_2b9a_dcca_3a7c5f45ad14["beta_async_method()"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|method| 7d45bba3_4aee_2b9a_dcca_3a7c5f45ad14
  137866f9_ce29_98d1_c62f_e37d36e43f1d["beta_classmethod()"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|method| 137866f9_ce29_98d1_c62f_e37d36e43f1d
  6d2f7c7f_5eaf_4c39_2db5_f43dfe9825cd["beta_staticmethod()"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|method| 6d2f7c7f_5eaf_4c39_2db5_f43dfe9825cd
  86a9877a_2f07_c231_f261_bb81b5a049a2["beta_property()"]
  5c678681_d895_9632_3d80_c86a6c1887d1 -->|method| 86a9877a_2f07_c231_f261_bb81b5a049a2

Relationship Graph

Source Code

libs/core/tests/unit_tests/_api/test_beta_decorator.py lines 68–106

class ClassWithBetaMethods:
    def __init__(self) -> None:
        """Original doc."""

    @beta()
    def beta_method(self) -> str:
        """Original doc."""
        return "This is a beta method."

    @beta()
    async def beta_async_method(self) -> str:
        """Original doc."""
        return "This is a beta async method."

    @classmethod
    @beta()
    def beta_classmethod(cls) -> str:
        """Original doc."""
        return "This is a beta classmethod."

    @staticmethod
    @beta()
    def beta_staticmethod() -> str:
        """Original doc."""
        return "This is a beta staticmethod."

    @property
    def beta_property(self) -> str:
        """Original doc."""
        return "This is a beta property."

    @beta_property.setter
    def beta_property(self, _value: str) -> None:
        pass

    @beta()  # type: ignore[misc]
    @beta_property.deleter
    def beta_property(self) -> None:
        pass

Frequently Asked Questions

What is the ClassWithBetaMethods class?
ClassWithBetaMethods is a class in the langchain codebase, defined in libs/core/tests/unit_tests/_api/test_beta_decorator.py.
Where is ClassWithBetaMethods defined?
ClassWithBetaMethods is defined in libs/core/tests/unit_tests/_api/test_beta_decorator.py at line 68.

Analyze Your Own Codebase

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

Try Supermodel Free