| # SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from haystack.core.component import component | |
| class Double: | |
| """ | |
| Doubles the input value. | |
| """ | |
| def run(self, value: int): | |
| """ | |
| Doubles the input value. | |
| """ | |
| return {"value": value * 2} | |