feat(api): Implement `version` method in `parameter_extractor_node` and raise NotImplementedError in `BaseNode`

pull/20699/head
QuantumGhost 12 months ago
parent d7a556a36c
commit 102d2f4d58

@ -178,7 +178,7 @@ class BaseNode(Generic[GenericNodeData]):
#
# If you have introduced a new node type, please add it to `NODE_TYPE_CLASSES_MAPPING`
# in `api/core/workflow/nodes/__init__.py`.
pass
raise NotImplementedError("subclasses of BaseNode must implement `version` method.")
@property
def should_continue_on_error(self) -> bool:

@ -109,6 +109,10 @@ class ParameterExtractorNode(BaseNode):
}
}
@classmethod
def version(cls) -> str:
return "1"
def _run(self):
"""
Run the node.

Loading…
Cancel
Save