GetLambdaSource#

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

Get the source code of a lambda function.

Initialize the visitor.

Methods

__init__()

Initialize the visitor.

generic_visit(node)

Called if no explicit visitor function exists for a node.

visit(node)

Visit a node.

visit_Constant(node)

visit_Lambda(node)

Visit a lambda function.

__init__() None[source]#

Initialize the visitor.

Return type:

None

generic_visit(node)#

Called if no explicit visitor function exists for a node.

visit(node)#

Visit a node.

visit_Constant(node)#
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