mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
r2
This commit is contained in:
parent
fcbd5febeb
commit
47664f8fd3
@ -213,15 +213,6 @@ class GetOnlineDocumentPagesRequest(BaseModel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class OnlineDocumentPageIcon(BaseModel):
|
|
||||||
"""
|
|
||||||
Online document page icon
|
|
||||||
"""
|
|
||||||
|
|
||||||
type: str = Field(..., description="The type of the icon")
|
|
||||||
url: str = Field(..., description="The url of the icon")
|
|
||||||
|
|
||||||
|
|
||||||
class OnlineDocumentPage(BaseModel):
|
class OnlineDocumentPage(BaseModel):
|
||||||
"""
|
"""
|
||||||
Online document page
|
Online document page
|
||||||
@ -229,7 +220,7 @@ class OnlineDocumentPage(BaseModel):
|
|||||||
|
|
||||||
page_id: str = Field(..., description="The page id")
|
page_id: str = Field(..., description="The page id")
|
||||||
page_title: str = Field(..., description="The page title")
|
page_title: str = Field(..., description="The page title")
|
||||||
page_icon: Optional[OnlineDocumentPageIcon] = Field(None, description="The page icon")
|
page_icon: Optional[dict] = Field(None, description="The page icon")
|
||||||
type: str = Field(..., description="The type of the page")
|
type: str = Field(..., description="The type of the page")
|
||||||
last_edited_time: str = Field(..., description="The last edited time")
|
last_edited_time: str = Field(..., description="The last edited time")
|
||||||
|
|
||||||
@ -288,22 +279,27 @@ class GetWebsiteCrawlRequest(BaseModel):
|
|||||||
crawl_parameters: dict = Field(..., description="The crawl parameters")
|
crawl_parameters: dict = Field(..., description="The crawl parameters")
|
||||||
|
|
||||||
|
|
||||||
class WebSiteInfo(BaseModel):
|
class WebSiteInfoDetail(BaseModel):
|
||||||
"""
|
|
||||||
Website info
|
|
||||||
"""
|
|
||||||
|
|
||||||
source_url: str = Field(..., description="The url of the website")
|
source_url: str = Field(..., description="The url of the website")
|
||||||
content: str = Field(..., description="The content of the website")
|
content: str = Field(..., description="The content of the website")
|
||||||
title: str = Field(..., description="The title of the website")
|
title: str = Field(..., description="The title of the website")
|
||||||
description: str = Field(..., description="The description of the website")
|
description: str = Field(..., description="The description of the website")
|
||||||
|
|
||||||
|
class WebSiteInfo(BaseModel):
|
||||||
|
"""
|
||||||
|
Website info
|
||||||
|
"""
|
||||||
|
job_id: str = Field(..., description="The job id")
|
||||||
|
status: str = Field(..., description="The status of the job")
|
||||||
|
web_info_list: Optional[list[WebSiteInfoDetail]] = []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class GetWebsiteCrawlResponse(BaseModel):
|
class GetWebsiteCrawlResponse(BaseModel):
|
||||||
"""
|
"""
|
||||||
Get website crawl response
|
Get website crawl response
|
||||||
"""
|
"""
|
||||||
|
|
||||||
result: Optional[list[WebSiteInfo]] = []
|
result: WebSiteInfo = WebSiteInfo(job_id="", status="", web_info_list=[])
|
||||||
job_id: str = Field(..., description="The job id")
|
|
||||||
status: str = Field(..., description="The status of the job")
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user