langchain_core.runnables.utils.IsLocalDict¶

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

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[source]¶
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[source]¶
Parameters

node (Call) –

Return type

Any

visit_Constant(node)¶
visit_Subscript(node: Subscript) Any[source]¶
Parameters

node (Subscript) –

Return type

Any