langchain_core.runnables.graph
.Edge¶
- class langchain_core.runnables.graph.Edge(source: str, target: str, data: Optional[str] = None, conditional: bool = False)[source]¶
图ä¸çš„边。
Create new instance of Edge(source, target, data, conditional)
Attributes
conditional
Alias for field number 3
data
Alias for field number 2
source
Alias for field number 0
target
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
source (str) –
target (str) –
data (Optional[str]) –
conditional (bool) –
- __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.