mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
fix: node type
This commit is contained in:
@ -136,12 +136,12 @@ class ToolNode(BaseNode):
|
|||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _extract_variable_selector_to_variable_mapping(cls, node_data: BaseNodeData) -> dict[str, list[str]]:
|
def _extract_variable_selector_to_variable_mapping(cls, node_data: ToolNodeData) -> dict[str, list[str]]:
|
||||||
"""
|
"""
|
||||||
Extract variable selector to variable mapping
|
Extract variable selector to variable mapping
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
k.variable: k.value_selector
|
k.variable: k.value_selector
|
||||||
for k in cast(ToolNodeData, node_data).tool_parameters
|
for k in node_data.tool_parameters
|
||||||
if k.variable_type == 'selector'
|
if k.variable_type == 'selector'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user