Home / Function/ _acall() — langchain Function Reference

_acall() — langchain Function Reference

Architecture documentation for the _acall() function in fake.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6ac164c5_4cfa_38ca_6ec4_66143c8bcba5["_acall()"]
  a07c77e4_0f50_8425_4bc4_f146e0498046["FakeListLLM"]
  6ac164c5_4cfa_38ca_6ec4_66143c8bcba5 -->|defined in| a07c77e4_0f50_8425_4bc4_f146e0498046
  style 6ac164c5_4cfa_38ca_6ec4_66143c8bcba5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/language_models/fake.py lines 60–73

    async def _acall(
        self,
        prompt: str,
        stop: list[str] | None = None,
        run_manager: AsyncCallbackManagerForLLMRun | 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

Frequently Asked Questions

What does _acall() do?
_acall() is a function in the langchain codebase, defined in libs/core/langchain_core/language_models/fake.py.
Where is _acall() defined?
_acall() is defined in libs/core/langchain_core/language_models/fake.py at line 60.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free