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.