_tools_in_params() — langchain Function Reference
Architecture documentation for the _tools_in_params() function in chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8f4b2740_7c71_b933_6989_ad2d7f8a4b42["_tools_in_params()"] a85819c7_917d_4c71_2864_a19e68947340["chat_models.py"] 8f4b2740_7c71_b933_6989_ad2d7f8a4b42 -->|defined in| a85819c7_917d_4c71_2864_a19e68947340 d6746b81_ab7c_4b02_8921_f885e52e303e["_stream()"] d6746b81_ab7c_4b02_8921_f885e52e303e -->|calls| 8f4b2740_7c71_b933_6989_ad2d7f8a4b42 8028f890_4975_51cc_2409_45db9b39971a["_astream()"] 8028f890_4975_51cc_2409_45db9b39971a -->|calls| 8f4b2740_7c71_b933_6989_ad2d7f8a4b42 style 8f4b2740_7c71_b933_6989_ad2d7f8a4b42 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/langchain_anthropic/chat_models.py lines 1852–1857
def _tools_in_params(params: dict) -> bool:
return (
"tools" in params
or ("extra_body" in params and params["extra_body"].get("tools"))
or "mcp_servers" in params
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _tools_in_params() do?
_tools_in_params() is a function in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/chat_models.py.
Where is _tools_in_params() defined?
_tools_in_params() is defined in libs/partners/anthropic/langchain_anthropic/chat_models.py at line 1852.
What calls _tools_in_params()?
_tools_in_params() is called by 2 function(s): _astream, _stream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free