Skip to content

Commit 4ff33e3

Browse files
committed
feat:update datasource entity and update pyproject.toml to 0.4.0b4
1 parent 41403c4 commit 4ff33e3

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

python/dify_plugin/entities/datasource.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,25 @@ class DatasourceRuntime(BaseModel):
99
user_id: Optional[str]
1010
session_id: Optional[str]
1111

12-
13-
class WebSiteInfo(BaseModel):
14-
"""
15-
Website info
16-
"""
17-
12+
class WebSiteInfoDetail(BaseModel):
1813
source_url: str = Field(..., description="The url of the website")
1914
content: str = Field(..., description="The content of the website")
2015
title: str = Field(..., description="The title of the website")
2116
description: str = Field(..., description="The description of the website")
2217

23-
24-
class GetWebsiteCrawlResponse(BaseModel):
18+
class WebSiteInfo(BaseModel):
2519
"""
26-
Get website crawl response
20+
Website info
2721
"""
2822
job_id: Optional[str] = Field(..., description="crawl job id")
2923
status: Optional[str] = Field(..., description="crawl job status")
30-
result: list[WebSiteInfo]
24+
web_info_list: Optional[list[WebSiteInfoDetail]] = []
3125

32-
33-
class OnlineDocumentPageIcon(BaseModel):
26+
class GetWebsiteCrawlResponse(BaseModel):
3427
"""
35-
Online document page icon
28+
Get website crawl response
3629
"""
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]
4131

4232
class OnlineDocumentPage(BaseModel):
4333
"""
@@ -46,7 +36,7 @@ class OnlineDocumentPage(BaseModel):
4636

4737
page_id: str = Field(..., description="The page id")
4838
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")
5040
type: str = Field(..., description="The type of the page")
5141
last_edited_time: str = Field(..., description="The last edited time")
5242

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dify_plugin"
3-
version = "0.4.0b3"
3+
version = "0.4.0b4"
44
description = "Dify Plugin SDK"
55
authors = [{ name = "langgenius", email = "hello@dify.ai" }]
66
dependencies = [

0 commit comments

Comments
 (0)