@@ -9,35 +9,25 @@ class DatasourceRuntime(BaseModel):
9
9
user_id : Optional [str ]
10
10
session_id : Optional [str ]
11
11
12
-
13
- class WebSiteInfo (BaseModel ):
14
- """
15
- Website info
16
- """
17
-
12
+ class WebSiteInfoDetail (BaseModel ):
18
13
source_url : str = Field (..., description = "The url of the website" )
19
14
content : str = Field (..., description = "The content of the website" )
20
15
title : str = Field (..., description = "The title of the website" )
21
16
description : str = Field (..., description = "The description of the website" )
22
17
23
-
24
- class GetWebsiteCrawlResponse (BaseModel ):
18
+ class WebSiteInfo (BaseModel ):
25
19
"""
26
- Get website crawl response
20
+ Website info
27
21
"""
28
22
job_id : Optional [str ] = Field (..., description = "crawl job id" )
29
23
status : Optional [str ] = Field (..., description = "crawl job status" )
30
- result : list [WebSiteInfo ]
24
+ web_info_list : Optional [ list [WebSiteInfoDetail ]] = [ ]
31
25
32
-
33
- class OnlineDocumentPageIcon (BaseModel ):
26
+ class GetWebsiteCrawlResponse (BaseModel ):
34
27
"""
35
- Online document page icon
28
+ Get website crawl response
36
29
"""
37
-
38
- type : str = Field (..., description = "The type of the icon" )
39
- url : str = Field (..., description = "The url of the icon" )
40
-
30
+ result : list [WebSiteInfo ]
41
31
42
32
class OnlineDocumentPage (BaseModel ):
43
33
"""
@@ -46,7 +36,7 @@ class OnlineDocumentPage(BaseModel):
46
36
47
37
page_id : str = Field (..., description = "The page id" )
48
38
page_title : str = Field (..., description = "The page title" )
49
- page_icon : Optional [OnlineDocumentPageIcon ] = Field (None , description = "The page icon" )
39
+ page_icon : Optional [dict ] = Field (None , description = "The page icon" )
50
40
type : str = Field (..., description = "The type of the page" )
51
41
last_edited_time : str = Field (..., description = "The last edited time" )
52
42
0 commit comments