_call_async() — langchain Function Reference
Architecture documentation for the _call_async() function in llms.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 667f2693_fe60_ba54_4f98_db95101471d4["_call_async()"] ce4aa464_3868_179e_5d99_df48bc307c5f["BaseLLM"] 667f2693_fe60_ba54_4f98_db95101471d4 -->|defined in| ce4aa464_3868_179e_5d99_df48bc307c5f 99297396_752a_7590_6d2b_c4757fc5a9d8["agenerate()"] 667f2693_fe60_ba54_4f98_db95101471d4 -->|calls| 99297396_752a_7590_6d2b_c4757fc5a9d8 style 667f2693_fe60_ba54_4f98_db95101471d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/language_models/llms.py lines 1329–1348
async def _call_async(
self,
prompt: str,
stop: list[str] | None = None,
callbacks: Callbacks = None,
*,
tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
**kwargs: Any,
) -> str:
"""Check Cache and run the LLM on the given prompt and input."""
result = await self.agenerate(
[prompt],
stop=stop,
callbacks=callbacks,
tags=tags,
metadata=metadata,
**kwargs,
)
return result.generations[0][0].text
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _call_async() do?
_call_async() is a function in the langchain codebase, defined in libs/core/langchain_core/language_models/llms.py.
Where is _call_async() defined?
_call_async() is defined in libs/core/langchain_core/language_models/llms.py at line 1329.
What does _call_async() call?
_call_async() calls 1 function(s): agenerate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free