Set result to None if condition fails
This commit is contained in:
parent
75ee16acb0
commit
96f1cc1e59
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ from typing import Callable, Dict, List, Optional, Union
|
|||
|
||||
import yaml
|
||||
from langchain_core.messages import AIMessage
|
||||
|
||||
from langflow.graph.utils import UnbuiltObject, flatten_list
|
||||
from langflow.graph.vertex.base import StatefulVertex, StatelessVertex
|
||||
from langflow.interface.utils import extract_input_variables_from_prompt
|
||||
|
|
@ -385,6 +386,7 @@ class RoutingVertex(StatelessVertex):
|
|||
self._built_result = result
|
||||
else:
|
||||
self.graph.mark_branch(self.id, "INACTIVE")
|
||||
self._built_result = None
|
||||
|
||||
|
||||
def dict_to_codeblock(d: dict) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue