FunctionNonLocals#

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

Get the nonlocal variables accessed of a function.

Methods

__init__()

generic_visit(node)

Called if no explicit visitor function exists for a node.

visit(node)

Visit a node.

visit_AsyncFunctionDef(node)

Visit an async function definition.

visit_Constant(node)

visit_FunctionDef(node)

Visit a function definition.

visit_Lambda(node)

Visit a lambda function.

__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_AsyncFunctionDef(node: AsyncFunctionDef) Any[source]#

Visit an async function definition.

Parameters:

node (AsyncFunctionDef) – The node to visit.

Returns:

The result of the visit.

Return type:

Any

visit_Constant(node)#
visit_FunctionDef(node: FunctionDef) Any[source]#

Visit a function definition.

Parameters:

node (FunctionDef) – The node to visit.

Returns:

The result of the visit.

Return type:

Any

visit_Lambda(node: Lambda) Any[source]#

Visit a lambda function.

Parameters:

node (Lambda) – The node to visit.

Returns:

The result of the visit.

Return type:

Any