_call() — langchain Function Reference
Architecture documentation for the _call() function in fake.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ea6fca30_563e_e04a_0440_48dc3bae892e["_call()"] a07c77e4_0f50_8425_4bc4_f146e0498046["FakeListLLM"] ea6fca30_563e_e04a_0440_48dc3bae892e -->|defined in| a07c77e4_0f50_8425_4bc4_f146e0498046 style ea6fca30_563e_e04a_0440_48dc3bae892e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/language_models/fake.py lines 44–57
def _call(
self,
prompt: str,
stop: list[str] | None = None,
run_manager: CallbackManagerForLLMRun | None = None,
**kwargs: Any,
) -> str:
"""Return next response."""
response = self.responses[self.i]
if self.i < len(self.responses) - 1:
self.i += 1
else:
self.i = 0
return response
Domain
Subdomains
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.py.
Where is _call() defined?
_call() is defined in libs/core/langchain_core/language_models/fake.py at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free