소스 검색

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.
tags/2.0.0-beta.1
QuantumGhost 2 달 전
부모
커밋
89ec13ec67
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      api/core/workflow/nodes/tool/tool_node.py

+ 2
- 1
api/core/workflow/nodes/tool/tool_node.py 파일 보기

for selector in selectors: for selector in selectors:
result[selector.variable] = selector.value_selector result[selector.variable] = selector.value_selector
elif input.type == "variable": elif input.type == "variable":
result[parameter_name] = input.value
selector_key = ".".join(input.value)
result[f"#{selector_key}#"] = input.value
elif input.type == "constant": elif input.type == "constant":
pass pass



Loading…
취소
저장