mirror of
https://github.com/langgenius/dify.git
synced 2026-05-30 07:00:37 -04:00
@@ -207,13 +207,7 @@ class VariablePool(BaseModel):
|
||||
return result
|
||||
|
||||
def flatten(self, *, unprefixed_node_id: str | None = None) -> Mapping[str, object]:
|
||||
"""Return a selector-style snapshot of the entire variable pool.
|
||||
|
||||
Variables belonging to ``unprefixed_node_id`` keep their original names so callers
|
||||
can expose the current node's values without duplicating its namespace. All other
|
||||
entries are emitted as ``"<node_id>.<name>"`` to preserve their source prefix in a
|
||||
single flat mapping.
|
||||
"""
|
||||
"""Return a selector-style snapshot of the entire variable pool."""
|
||||
|
||||
result: dict[str, object] = {}
|
||||
for node_id, variables in self.variable_dictionary.items():
|
||||
|
||||
Reference in New Issue
Block a user