_call() — langchain Function Reference
Architecture documentation for the _call() function in test_agent_async.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e1229f89_eee9_3bdb_abcd_de36ec90f784["_call()"] 5e48d5ad_3c90_c6d2_0771_5a91135f0368["FakeListLLM"] e1229f89_eee9_3bdb_abcd_de36ec90f784 -->|defined in| 5e48d5ad_3c90_c6d2_0771_5a91135f0368 20e0f822_0b97_1cd6_86f0_e34565beba8f["_acall()"] 20e0f822_0b97_1cd6_86f0_e34565beba8f -->|calls| e1229f89_eee9_3bdb_abcd_de36ec90f784 style e1229f89_eee9_3bdb_abcd_de36ec90f784 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_agent_async.py lines 24–35
def _call(
self,
prompt: str,
stop: list[str] | None = None,
run_manager: CallbackManagerForLLMRun | None = None,
**kwargs: Any,
) -> str:
"""Increment counter, and then return response in that index."""
self.i += 1
print(f"=== Mock Response #{self.i} ===") # noqa: T201
print(self.responses[self.i]) # noqa: T201
return self.responses[self.i]
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_agent_async.py.
Where is _call() defined?
_call() is defined in libs/langchain/tests/unit_tests/agents/test_agent_async.py at line 24.
What calls _call()?
_call() is called by 1 function(s): _acall.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free