AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(blocks): Fix failing block test AgentToggleInputBlock
Zamil Majdy5b118fc93954
diff --git a/autogpt_platform/backend/backend/blocks/io.py b/autogpt_platform/backend/backend/blocks/io.pyindex b543770289..7edb4629c0 100644--- a/autogpt_platform/backend/backend/blocks/io.py+++ b/autogpt_platform/backend/backend/blocks/io.py@@ -92,7 +92,7 @@ class AgentInputBlock(Block):)def run(self, input_data: Input, *args, **kwargs) -> BlockOutput:- if input_data.value:+ if input_data.value is not None:yield "result", input_data.value