Home / Function/ visit_Call() — langchain Function Reference

visit_Call() — langchain Function Reference

Architecture documentation for the visit_Call() function in utils.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d97f2b29_e61c_c386_1aac_ccbd46e38a63["visit_Call()"]
  34ec985f_4eeb_84fd_e9b2_db2d097ff071["IsLocalDict"]
  d97f2b29_e61c_c386_1aac_ccbd46e38a63 -->|defined in| 34ec985f_4eeb_84fd_e9b2_db2d097ff071
  e2142090_5e18_5f4c_23da_ad2e17947706["add()"]
  d97f2b29_e61c_c386_1aac_ccbd46e38a63 -->|calls| e2142090_5e18_5f4c_23da_ad2e17947706
  style d97f2b29_e61c_c386_1aac_ccbd46e38a63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/utils.py lines 189–205

    def visit_Call(self, node: ast.Call) -> None:
        """Visit a call node.

        Args:
            node: The node to visit.
        """
        if (
            isinstance(node.func, ast.Attribute)
            and isinstance(node.func.value, ast.Name)
            and node.func.value.id == self.name
            and node.func.attr == "get"
            and len(node.args) in {1, 2}
            and isinstance(node.args[0], ast.Constant)
            and isinstance(node.args[0].value, str)
        ):
            # we've found a .get() call on the name we're looking for
            self.keys.add(node.args[0].value)

Domain

Subdomains

Calls

Frequently Asked Questions

What does visit_Call() do?
visit_Call() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/utils.py.
Where is visit_Call() defined?
visit_Call() is defined in libs/core/langchain_core/runnables/utils.py at line 189.
What does visit_Call() call?
visit_Call() calls 1 function(s): add.

Analyze Your Own Codebase

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

Try Supermodel Free