mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-15 16:45:54 +08:00
Update check_deep_research_status return type annotation
Co-Authored-By: Nicolas Camara <nicolascamara29@gmail.com>
This commit is contained in:
parent
99ec770f4d
commit
054d99c1af
@ -23,7 +23,7 @@ import websockets
|
|||||||
import aiohttp
|
import aiohttp
|
||||||
import asyncio
|
import asyncio
|
||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
from .utils import convert_dict_keys_to_snake_case, convert_to_dot_dict, DeepResearchResponse, DeepResearchData, DeepResearchDataSource
|
from .utils import convert_dict_keys_to_snake_case, convert_to_dot_dict, DotDict, DeepResearchResponse, DeepResearchData, DeepResearchDataSource
|
||||||
|
|
||||||
# Suppress Pydantic warnings about attribute shadowing
|
# Suppress Pydantic warnings about attribute shadowing
|
||||||
warnings.filterwarnings("ignore", message="Field name \"json\" in \"FirecrawlDocument\" shadows an attribute in parent \"BaseModel\"")
|
warnings.filterwarnings("ignore", message="Field name \"json\" in \"FirecrawlDocument\" shadows an attribute in parent \"BaseModel\"")
|
||||||
@ -2410,7 +2410,7 @@ class FirecrawlApp:
|
|||||||
|
|
||||||
return {'success': False, 'error': 'Internal server error'}
|
return {'success': False, 'error': 'Internal server error'}
|
||||||
|
|
||||||
def check_deep_research_status(self, id: str) -> DeepResearchStatusResponse:
|
def check_deep_research_status(self, id: str) -> Union[DotDict[DeepResearchResponse], Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
Check the status of a deep research operation.
|
Check the status of a deep research operation.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user