Home / Function/ to_dict() — anthropic-sdk-python Function Reference

to_dict() — anthropic-sdk-python Function Reference

Architecture documentation for the to_dict() function in _beta_functions.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  7d765acb_aa92_f159_4509_90b5193d17c1["to_dict()"]
  001b1f9e_045c_b009_1c1f_58964c925505["BaseFunctionTool"]
  7d765acb_aa92_f159_4509_90b5193d17c1 -->|defined in| 001b1f9e_045c_b009_1c1f_58964c925505
  baf9a1f8_c63a_fb87_4213_fcd2c3959199["name()"]
  baf9a1f8_c63a_fb87_4213_fcd2c3959199 -->|calls| 7d765acb_aa92_f159_4509_90b5193d17c1
  980c2dc2_1eda_4eea_e1c9_b96c84045c95["name()"]
  980c2dc2_1eda_4eea_e1c9_b96c84045c95 -->|calls| 7d765acb_aa92_f159_4509_90b5193d17c1
  04628812_0eb0_f282_1ea1_a8e3ece2b813["to_dict()"]
  7d765acb_aa92_f159_4509_90b5193d17c1 -->|calls| 04628812_0eb0_f282_1ea1_a8e3ece2b813
  style 7d765acb_aa92_f159_4509_90b5193d17c1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/lib/tools/_beta_functions.py lines 105–113

    def to_dict(self) -> BetaToolParam:
        defn: BetaToolParam = {
            "name": self.name,
            "description": self.description,
            "input_schema": self.input_schema,
        }
        if self._defer_loading is not None:
            defn["defer_loading"] = self._defer_loading
        return defn

Subdomains

Calls

Called By

Frequently Asked Questions

What does to_dict() do?
to_dict() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_functions.py.
Where is to_dict() defined?
to_dict() is defined in src/anthropic/lib/tools/_beta_functions.py at line 105.
What does to_dict() call?
to_dict() calls 1 function(s): to_dict.
What calls to_dict()?
to_dict() is called by 2 function(s): name, name.

Analyze Your Own Codebase

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

Try Supermodel Free