From c9ac2b9ca36fa0f597c1ff2d91a78d2402063409 Mon Sep 17 00:00:00 2001 From: Mandlin Sarah Date: Mon, 19 Aug 2024 02:47:08 -0700 Subject: [PATCH] Improve documentation and add type hint for better clarity --- rnd/autogpt_server/autogpt_server/blocks/basic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rnd/autogpt_server/autogpt_server/blocks/basic.py b/rnd/autogpt_server/autogpt_server/blocks/basic.py index 64a9e6296e40..1285a03c0aa9 100644 --- a/rnd/autogpt_server/autogpt_server/blocks/basic.py +++ b/rnd/autogpt_server/autogpt_server/blocks/basic.py @@ -15,7 +15,8 @@ class ValueBlock(Block): is retained in the block for the next execution. You can then trigger the block by feeding the `input` pin with any data, and the block will produce value of `data`. - Ex: + Example: + ---------- || || =====> `data` `input` @@ -139,3 +140,5 @@ def run(self, input_data: Input) -> BlockOutput: yield "output", getattr(obj, key) else: yield "missing", input_data.input + +