Toggle Menu
Prev Up Next

# `langchain_core.runnables.utils`.GetLambdaSource

class langchain_core.runnables.utils.GetLambdaSource

  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

    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

    Visit a lambda function.

    Parameters

      node (Lambda) –

    Return type

      Any