_thinking_in_params() — langchain Function Reference
Architecture documentation for the _thinking_in_params() function in chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d0043912_79ce_fb22_d24e_6234ef57df26["_thinking_in_params()"] a85819c7_917d_4c71_2864_a19e68947340["chat_models.py"] d0043912_79ce_fb22_d24e_6234ef57df26 -->|defined in| a85819c7_917d_4c71_2864_a19e68947340 d6746b81_ab7c_4b02_8921_f885e52e303e["_stream()"] d6746b81_ab7c_4b02_8921_f885e52e303e -->|calls| d0043912_79ce_fb22_d24e_6234ef57df26 8028f890_4975_51cc_2409_45db9b39971a["_astream()"] 8028f890_4975_51cc_2409_45db9b39971a -->|calls| d0043912_79ce_fb22_d24e_6234ef57df26 style d0043912_79ce_fb22_d24e_6234ef57df26 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/langchain_anthropic/chat_models.py lines 1860–1861
def _thinking_in_params(params: dict) -> bool:
return params.get("thinking", {}).get("type") == "enabled"
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _thinking_in_params() do?
_thinking_in_params() is a function in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/chat_models.py.
Where is _thinking_in_params() defined?
_thinking_in_params() is defined in libs/partners/anthropic/langchain_anthropic/chat_models.py at line 1860.
What calls _thinking_in_params()?
_thinking_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