langchain_core.runnables.graph.Node

class langchain_core.runnables.graph.Node(id: str, data: Union[Type[BaseModel], RunnableType])[source]

Node in a graph.

Create new instance of Node(id, data)

Attributes

data

Alias for field number 1

id

Alias for field number 0

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Parameters
  • id (str) –

  • data (Union[Type[BaseModel], RunnableType]) –

__init__()
count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.