Home / Function/ bind_tools() — langchain Function Reference

bind_tools() — langchain Function Reference

Architecture documentation for the bind_tools() function in test_fallbacks.py from the langchain codebase.

Function python LangChainCore Runnables calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  5038135d_7d6b_0c01_1dbb_69a9849dcfd9["bind_tools()"]
  051e834b_8bff_dcab_1e7b_589fc47bacd2["FakeStructuredOutputModel"]
  5038135d_7d6b_0c01_1dbb_69a9849dcfd9 -->|defined in| 051e834b_8bff_dcab_1e7b_589fc47bacd2
  bdc50bc3_7f6e_cb3a_ed03_60c2ba1ed8fd["bind_tools()"]
  bdc50bc3_7f6e_cb3a_ed03_60c2ba1ed8fd -->|calls| 5038135d_7d6b_0c01_1dbb_69a9849dcfd9
  e92f25f8_527f_760a_9abd_7567ae8196eb["test_fallbacks_getattr_runnable_output()"]
  e92f25f8_527f_760a_9abd_7567ae8196eb -->|calls| 5038135d_7d6b_0c01_1dbb_69a9849dcfd9
  bdc50bc3_7f6e_cb3a_ed03_60c2ba1ed8fd["bind_tools()"]
  5038135d_7d6b_0c01_1dbb_69a9849dcfd9 -->|calls| bdc50bc3_7f6e_cb3a_ed03_60c2ba1ed8fd
  style 5038135d_7d6b_0c01_1dbb_69a9849dcfd9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_fallbacks.py lines 336–341

    def bind_tools(
        self,
        tools: Sequence[dict[str, Any] | type[BaseModel] | Callable | BaseTool],
        **kwargs: Any,
    ) -> Runnable[LanguageModelInput, AIMessage]:
        return self.bind(tools=tools)

Domain

Subdomains

Calls

Frequently Asked Questions

What does bind_tools() do?
bind_tools() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py.
Where is bind_tools() defined?
bind_tools() is defined in libs/core/tests/unit_tests/runnables/test_fallbacks.py at line 336.
What does bind_tools() call?
bind_tools() calls 1 function(s): bind_tools.
What calls bind_tools()?
bind_tools() is called by 2 function(s): bind_tools, test_fallbacks_getattr_runnable_output.

Analyze Your Own Codebase

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

Try Supermodel Free