Skip to content

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.

Merge 'master' into 'dev'

Lluis Agustie6fb649ced0c
diff --cc autogpt_platform/backend/backend/blocks/firecrawl/extract.py
index e516952fa0,06931a55a0..4f54b102a0
--- a/autogpt_platform/backend/backend/blocks/firecrawl/extract.py
+++ b/autogpt_platform/backend/backend/blocks/firecrawl/extract.py
@@@ -38,8 -37,12 +38,12 @@@ class FirecrawlExtractBlock(Block)
default=False,
)
- class Output(BlockSchema):
+ class Output(BlockSchemaOutput):
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 --cc autogpt_platform/backend/backend/blocks/firecrawl/search.py
index 7f47d2ec5f,eab9d3e5f4..a2769a0f96
--- a/autogpt_platform/backend/backend/blocks/firecrawl/search.py
+++ b/autogpt_platform/backend/backend/blocks/firecrawl/search.py
@@@ -36,9 -35,13 +36,13 @@@ class FirecrawlSearchBlock(Block)
description="Returns the content of the search if specified", default=[]
)
- class Output(BlockSchema):
+ class Output(BlockSchemaOutput):
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__(