10c675d534
* add license header to modules * check license header at linting time
14 lines
377 B
Python
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}!"}
|