__call__() — langchain Function Reference
Architecture documentation for the __call__() function in string_run_evaluator.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ea8529de_857a_cafc_0859_f6156a883f15["__call__()"] 6513456f_be2b_21ef_06af_21023f648595["StringRunMapper"] ea8529de_857a_cafc_0859_f6156a883f15 -->|defined in| 6513456f_be2b_21ef_06af_21023f648595 18ce5ec1_b967_6417_c994_9209a57f1c14["map()"] ea8529de_857a_cafc_0859_f6156a883f15 -->|calls| 18ce5ec1_b967_6417_c994_9209a57f1c14 style ea8529de_857a_cafc_0859_f6156a883f15 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py lines 50–55
def __call__(self, run: Run) -> dict[str, str]:
"""Maps the Run to a dictionary."""
if not run.outputs:
msg = f"Run {run.id} has no outputs to evaluate."
raise ValueError(msg)
return self.map(run)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does __call__() do?
__call__() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py.
Where is __call__() defined?
__call__() is defined in libs/langchain/langchain_classic/smith/evaluation/string_run_evaluator.py at line 50.
What does __call__() call?
__call__() calls 1 function(s): map.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free