haystack/rest_api/rest_api/pipeline/custom_component.py
Massimiliano Pippi 6790eaf7d8
refactor: update package strategy in rest_api (#3148)
* update packaging

* fix author metadata

* add newline

* add empty readme

* fix path to pipeline files

* fix pylint job

* fix metadata
2022-09-05 16:58:43 +02:00

19 lines
446 B
Python

"""
Pipelines allow putting together Components to build a graph.
In addition to the standard Haystack Components, custom user-defined Components
can be used in a Pipeline YAML configuration.
The classes for the Custom Components must be defined in this file.
"""
from haystack.nodes.base import BaseComponent
class SampleComponent(BaseComponent):
outgoing_edges: int = 1
def run(self, **kwargs):
raise NotImplementedError