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

20 lines
393 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 Double:
"""
Doubles the input value.
"""
@component.output_types(value=int)
def run(self, value: int):
"""
Doubles the input value.
"""
return {"value": value * 2}