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:
QuantumGhost 2025-09-01 18:09:20 +08:00
parent 1103130f81
commit 89ec13ec67
1 changed files with 2 additions and 1 deletions

View File

@ -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