Route#

class langchain.chains.router.base.Route(destination, next_inputs)[source]#

Create new instance of Route(destination, next_inputs)

Attributes

destination

Alias for field number 0

next_inputs

Alias for field number 1

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Parameters:
  • destination (str | None)

  • next_inputs (Dict[str, Any])

__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.