Files
Massimiliano Pippi 10c675d534 chore: add license header to all modules (#7675)
* add license header to modules
* check license header at linting time
2024-05-09 13:40:36 +00:00

14 lines
377 B
Python

# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.core.component import component
@component
class Hello:
@component.output_types(output=str)
def run(self, word: str):
"""Takes a string in input and returns "Hello, <string>!"in output."""
return {"output": f"Hello, {word}!"}