NonLocals#

class langchain_core.runnables.utils.NonLocals[source]#

Get nonlocal variables accessed.

Methods

__init__()

generic_visit(node)

Called if no explicit visitor function exists for a node.

visit(node)

Visit a node.

visit_Attribute(node)

Visit an attribute node.

visit_Constant(node)

visit_Name(node)

Visit a name node.

__init__() None[source]#
Return type:

None

generic_visit(node)#

Called if no explicit visitor function exists for a node.

visit(node)#

Visit a node.

visit_Attribute(node: Attribute) Any[source]#

Visit an attribute node.

Parameters:

node (Attribute) – The node to visit.

Returns:

The result of the visit.

Return type:

Any

visit_Constant(node)#
visit_Name(node: Name) Any[source]#

Visit a name node.

Parameters:

node (Name) – The node to visit.

Returns:

The result of the visit.

Return type:

Any