Home / Function/ has_tool_calling() — langchain Function Reference

has_tool_calling() — langchain Function Reference

Architecture documentation for the has_tool_calling() function in chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  68dda050_6ad0_88fe_98a0_85ccd2062b5e["has_tool_calling()"]
  93a85b25_a139_159d_bcf5_03a6e2ed4dd3["ChatModelTests"]
  68dda050_6ad0_88fe_98a0_85ccd2062b5e -->|defined in| 93a85b25_a139_159d_bcf5_03a6e2ed4dd3
  style 68dda050_6ad0_88fe_98a0_85ccd2062b5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/unit_tests/chat_models.py lines 94–96

    def has_tool_calling(self) -> bool:
        """Whether the model supports tool calling."""
        return self.chat_model_class.bind_tools is not BaseChatModel.bind_tools

Domain

Subdomains

Frequently Asked Questions

What does has_tool_calling() do?
has_tool_calling() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/unit_tests/chat_models.py.
Where is has_tool_calling() defined?
has_tool_calling() is defined in libs/standard-tests/langchain_tests/unit_tests/chat_models.py at line 94.

Analyze Your Own Codebase

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

Try Supermodel Free