_create() — langchain Function Reference
Architecture documentation for the _create() function in chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e06dbdb3_d54e_6b13_f29e_5cc1f96311b6["_create()"] 977b57b2_5d0e_bcf4_a43e_b52857105005["ChatAnthropic"] e06dbdb3_d54e_6b13_f29e_5cc1f96311b6 -->|defined in| 977b57b2_5d0e_bcf4_a43e_b52857105005 d6746b81_ab7c_4b02_8921_f885e52e303e["_stream()"] d6746b81_ab7c_4b02_8921_f885e52e303e -->|calls| e06dbdb3_d54e_6b13_f29e_5cc1f96311b6 cfc69e00_d0bd_d481_d810_57dcf2ca7d10["_generate()"] cfc69e00_d0bd_d481_d810_57dcf2ca7d10 -->|calls| e06dbdb3_d54e_6b13_f29e_5cc1f96311b6 style e06dbdb3_d54e_6b13_f29e_5cc1f96311b6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/anthropic/langchain_anthropic/chat_models.py lines 1247–1250
def _create(self, payload: dict) -> Any:
if "betas" in payload:
return self._client.beta.messages.create(**payload)
return self._client.messages.create(**payload)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _create() do?
_create() is a function in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/chat_models.py.
Where is _create() defined?
_create() is defined in libs/partners/anthropic/langchain_anthropic/chat_models.py at line 1247.
What calls _create()?
_create() is called by 2 function(s): _generate, _stream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free