Toggle Menu
Prev Up Next

# `langchain_core.runnables.utils`.IsLocalDict

class langchain_core.runnables.utils.IsLocalDict(name: str, keys: Set[str])

  Check if a name is a local dict.

  Methods

  `__init__`(name, keys) |
  `generic_visit`(node) | Called if no explicit visitor function exists for a node.
  `visit`(node) | Visit a node.
  `visit_Call`(node) |
  `visit_Constant`(node) |
  `visit_Subscript`(node) |

  Parameters

    - name (str) –

    - keys (Set[str]) –

  __init__(name: str, keys: Set[str]) → None
    Parameters

      - name (str) –

      - keys (Set[str]) –

    Return type

      None

  generic_visit(node)

    Called if no explicit visitor function exists for a node.

  visit(node)

    Visit a node.

  visit_Call(node: Call) → Any
    Parameters

      node (Call) –

    Return type

      Any

  visit_Constant(node)
  visit_Subscript(node: Subscript) → Any
    Parameters

      node (Subscript) –

    Return type

      Any