_call() — langchain Function Reference
Architecture documentation for the _call() function in fake_llm.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD dfc95100_44cf_9cac_fda1_28af7d8b9952["_call()"] ac1a5357_b229_484a_b87c_ad5bda459438["FakeLLM"] dfc95100_44cf_9cac_fda1_28af7d8b9952 -->|defined in| ac1a5357_b229_484a_b87c_ad5bda459438 style dfc95100_44cf_9cac_fda1_28af7d8b9952 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/llms/fake_llm.py lines 37–50
def _call(
self,
prompt: str,
stop: list[str] | None = None,
run_manager: CallbackManagerForLLMRun | None = None,
**kwargs: Any,
) -> str:
if self.sequential_responses:
return self._get_next_response_in_sequence
if self.queries is not None:
return self.queries[prompt]
if stop is None:
return "foo"
return "bar"
Domain
Subdomains
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/llms/fake_llm.py.
Where is _call() defined?
_call() is defined in libs/langchain/tests/unit_tests/llms/fake_llm.py at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free