mirror of https://github.com/langgenius/dify.git
fix(api): fix ToolNode._extract_variable_selector_to_variable_mapping
The original selector syntax does not match our current implementation for injecting user inputs into VariablePool.
This commit is contained in:
parent
1103130f81
commit
89ec13ec67
|
|
@ -462,7 +462,8 @@ class ToolNode(Node):
|
|||
for selector in selectors:
|
||||
result[selector.variable] = selector.value_selector
|
||||
elif input.type == "variable":
|
||||
result[parameter_name] = input.value
|
||||
selector_key = ".".join(input.value)
|
||||
result[f"#{selector_key}#"] = input.value
|
||||
elif input.type == "constant":
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue