bind_tools() — langchain Function Reference
Architecture documentation for the bind_tools() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 761a6f93_f04d_dbb7_3506_602f2cb6b991["bind_tools()"] 74f697e6_2555_becc_640e_6f41ea707eba["_ConfigurableModel"] 761a6f93_f04d_dbb7_3506_602f2cb6b991 -->|defined in| 74f697e6_2555_becc_640e_6f41ea707eba 7cab4903_51a5_8e53_ef85_cfac6cf6fbd1["init_chat_model()"] 7cab4903_51a5_8e53_ef85_cfac6cf6fbd1 -->|calls| 761a6f93_f04d_dbb7_3506_602f2cb6b991 style 761a6f93_f04d_dbb7_3506_602f2cb6b991 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/langchain/chat_models/base.py lines 981–986
def bind_tools(
self,
tools: Sequence[dict[str, Any] | type[BaseModel] | Callable[..., Any] | BaseTool],
**kwargs: Any,
) -> Runnable[LanguageModelInput, AIMessage]:
return self.__getattr__("bind_tools")(tools, **kwargs)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does bind_tools() do?
bind_tools() is a function in the langchain codebase, defined in libs/langchain_v1/langchain/chat_models/base.py.
Where is bind_tools() defined?
bind_tools() is defined in libs/langchain_v1/langchain/chat_models/base.py at line 981.
What calls bind_tools()?
bind_tools() is called by 1 function(s): init_chat_model.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free