mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
r2
This commit is contained in:
@ -39,7 +39,6 @@ from core.variables.variables import (
|
||||
from core.workflow.constants import (
|
||||
CONVERSATION_VARIABLE_NODE_ID,
|
||||
ENVIRONMENT_VARIABLE_NODE_ID,
|
||||
PIPELINE_VARIABLE_NODE_ID,
|
||||
)
|
||||
|
||||
|
||||
@ -123,6 +122,7 @@ def _build_variable_from_mapping(*, mapping: Mapping[str, Any], selector: Sequen
|
||||
result = result.model_copy(update={"selector": selector})
|
||||
return cast(Variable, result)
|
||||
|
||||
|
||||
def build_segment(value: Any, /) -> Segment:
|
||||
if value is None:
|
||||
return NoneSegment()
|
||||
|
||||
Reference in New Issue
Block a user