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): Add missing error output pins to all Firecrawl blocks (#11256)
Toran Bruce Richardsb52e95e1fc2b
diff --git a/autogpt_platform/backend/backend/blocks/firecrawl/crawl.py b/autogpt_platform/backend/backend/blocks/firecrawl/crawl.pyindex b20452f777..586c4514e2 100644--- a/autogpt_platform/backend/backend/blocks/firecrawl/crawl.py+++ b/autogpt_platform/backend/backend/blocks/firecrawl/crawl.py@@ -55,6 +55,10 @@ class FirecrawlCrawlBlock(Block):change_tracking: dict[str, Any] = SchemaField(description="The change tracking of the crawl")+ error: str = SchemaField(+ description="Error message if the crawl failed",+ default="",+ )def __init__(self):super().__init__(diff --git a/autogpt_platform/backend/backend/blocks/firecrawl/extract.py b/autogpt_platform/backend/backend/blocks/firecrawl/extract.pyindex caef24d126..06931a55a0 100755--- a/autogpt_platform/backend/backend/blocks/firecrawl/extract.py+++ b/autogpt_platform/backend/backend/blocks/firecrawl/extract.py@@ -39,6 +39,10 @@ class FirecrawlExtractBlock(Block):class Output(BlockSchema):data: dict[str, Any] = SchemaField(description="The result of the crawl")+ error: str = SchemaField(+ description="Error message if the extraction failed",+ default="",+ )def __init__(self):super().__init__(diff --git a/autogpt_platform/backend/backend/blocks/firecrawl/map.py b/autogpt_platform/backend/backend/blocks/firecrawl/map.pyindex 3e33f90461..032afa0686 100644--- a/autogpt_platform/backend/backend/blocks/firecrawl/map.py+++ b/autogpt_platform/backend/backend/blocks/firecrawl/map.py@@ -26,6 +26,10 @@ class FirecrawlMapWebsiteBlock(Block):results: list[dict[str, Any]] = SchemaField(description="List of search results with url, title, and description")+ error: str = SchemaField(+ description="Error message if the map failed",+ default="",+ )def __init__(self):super().__init__(diff --git a/autogpt_platform/backend/backend/blocks/firecrawl/scrape.py b/autogpt_platform/backend/backend/blocks/firecrawl/scrape.pyindex 2adde7e6d2..603eb61dba 100644--- a/autogpt_platform/backend/backend/blocks/firecrawl/scrape.py+++ b/autogpt_platform/backend/backend/blocks/firecrawl/scrape.py@@ -54,6 +54,10 @@ class FirecrawlScrapeBlock(Block):change_tracking: dict[str, Any] = SchemaField(description="The change tracking of the crawl")+ error: str = SchemaField(+ description="Error message if the scrape failed",+ default="",+ )def __init__(self):super().__init__(diff --git a/autogpt_platform/backend/backend/blocks/firecrawl/search.py b/autogpt_platform/backend/backend/blocks/firecrawl/search.pyindex 7af8796111..eab9d3e5f4 100644--- a/autogpt_platform/backend/backend/blocks/firecrawl/search.py+++ b/autogpt_platform/backend/backend/blocks/firecrawl/search.py@@ -38,6 +38,10 @@ class FirecrawlSearchBlock(Block):class Output(BlockSchema):data: dict[str, Any] = SchemaField(description="The result of the search")site: dict[str, Any] = SchemaField(description="The site of the search")+ error: str = SchemaField(+ description="Error message if the search failed",+ default="",+ )def __init__(self):super().__init__(