kept input name

This commit is contained in:
SwiftyOS
2024-09-27 10:01:23 +02:00
parent 9b5e2054ab
commit 81d9ffba3c

View File

@@ -22,7 +22,7 @@ class StoreValueBlock(Block):
trigger: Any = SchemaField(
description="Trigger the block to produce the output. Passed value is never used."
)
value: Any = SchemaField(
input: Any = SchemaField(
description="The constant data to be retained in the block. "
"This value is passed as `output`.",
default=None,
@@ -40,7 +40,7 @@ class StoreValueBlock(Block):
output_schema=StoreValueBlock.Output,
test_input=[
{"trigger": "Hello, World!"},
{"trigger": "Hello, World!", "value": "Existing Data"},
{"trigger": "Hello, World!", "input": "Existing Data"},
],
test_output=[
("output", None),
@@ -50,7 +50,7 @@ class StoreValueBlock(Block):
)
def run(self, input_data: Input, **kwargs) -> BlockOutput:
yield "output", input_data.value
yield "output", input_data.input
class PrintToConsoleBlock(Block):