mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-20 01:09:06 +08:00
generic
This commit is contained in:
parent
23ef26655c
commit
85247991bc
@ -411,12 +411,12 @@ class ExtractParams(pydantic.BaseModel):
|
|||||||
show_sources: Optional[bool] = False
|
show_sources: Optional[bool] = False
|
||||||
agent: Optional[Dict[str, Any]] = None
|
agent: Optional[Dict[str, Any]] = None
|
||||||
|
|
||||||
class ExtractResponse(pydantic.BaseModel):
|
class ExtractResponse(pydantic.BaseModel, Generic[T]):
|
||||||
"""
|
"""
|
||||||
Response from the extract operation.
|
Response from the extract operation.
|
||||||
"""
|
"""
|
||||||
success: bool
|
success: bool
|
||||||
data: Optional[Any] = None
|
data: Optional[T] = None
|
||||||
error: Optional[str] = None
|
error: Optional[str] = None
|
||||||
|
|
||||||
class FirecrawlApp:
|
class FirecrawlApp:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user