mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
More explicit model config
This commit is contained in:
@@ -24,7 +24,11 @@ class FirecrawlScrapeWebsiteToolSchema(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class FirecrawlScrapeWebsiteTool(BaseTool):
|
class FirecrawlScrapeWebsiteTool(BaseTool):
|
||||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
model_config = ConfigDict(
|
||||||
|
arbitrary_types_allowed=True,
|
||||||
|
validate_assignment=True,
|
||||||
|
frozen=False
|
||||||
|
)
|
||||||
name: str = "Firecrawl web scrape tool"
|
name: str = "Firecrawl web scrape tool"
|
||||||
description: str = "Scrape webpages url using Firecrawl and return the contents"
|
description: str = "Scrape webpages url using Firecrawl and return the contents"
|
||||||
args_schema: Type[BaseModel] = FirecrawlScrapeWebsiteToolSchema
|
args_schema: Type[BaseModel] = FirecrawlScrapeWebsiteToolSchema
|
||||||
@@ -63,6 +67,7 @@ class FirecrawlScrapeWebsiteTool(BaseTool):
|
|||||||
}
|
}
|
||||||
return self.firecrawl.scrape_url(url, options)
|
return self.firecrawl.scrape_url(url, options)
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from firecrawl import FirecrawlApp
|
from firecrawl import FirecrawlApp
|
||||||
# Must rebuild model after class is defined
|
# Must rebuild model after class is defined
|
||||||
|
|||||||
Reference in New Issue
Block a user