_call() — langchain Function Reference
Architecture documentation for the _call() function in fake_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 9f4eff8f_319e_f52d_bf3d_acec4dd7c3c7["_call()"] 2790c9e0_a72e_5aac_c2c7_6702139c50e3["FakeListChatModel"] 9f4eff8f_319e_f52d_bf3d_acec4dd7c3c7 -->|defined in| 2790c9e0_a72e_5aac_c2c7_6702139c50e3 eb238386_dfcf_1fbe_4664_773c1f256ad1["_call()"] eb238386_dfcf_1fbe_4664_773c1f256ad1 -->|calls| 9f4eff8f_319e_f52d_bf3d_acec4dd7c3c7 eb238386_dfcf_1fbe_4664_773c1f256ad1["_call()"] 9f4eff8f_319e_f52d_bf3d_acec4dd7c3c7 -->|calls| eb238386_dfcf_1fbe_4664_773c1f256ad1 style 9f4eff8f_319e_f52d_bf3d_acec4dd7c3c7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/language_models/fake_chat_models.py lines 76–92
def _call(
self,
*args: Any,
**kwargs: Any,
) -> str:
"""Return the next response in the list.
Cycle back to the start if at the end.
"""
if self.sleep is not None:
time.sleep(self.sleep)
response = self.responses[self.i]
if self.i < len(self.responses) - 1:
self.i += 1
else:
self.i = 0
return response
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/core/langchain_core/language_models/fake_chat_models.py.
Where is _call() defined?
_call() is defined in libs/core/langchain_core/language_models/fake_chat_models.py at line 76.
What does _call() call?
_call() calls 1 function(s): _call.
What calls _call()?
_call() is called by 1 function(s): _call.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free