botrun-hatch 5.6.52__tar.gz → 5.6.54__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of botrun-hatch might be problematic. Click here for more details.
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/PKG-INFO +1 -1
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/botrun_hatch/models/hatch.py +2 -2
- botrun_hatch-5.6.54/botrun_hatch/models/hatch_webhook.py +20 -0
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/pyproject.toml +1 -1
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/README.md +0 -0
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/botrun_hatch/__init__.py +0 -0
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/botrun_hatch/models/__init__.py +0 -0
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/botrun_hatch/models/hatch_sharing.py +0 -0
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/botrun_hatch/models/upload_file.py +0 -0
- {botrun_hatch-5.6.52 → botrun_hatch-5.6.54}/botrun_hatch/models/user_setting.py +0 -0
@@ -13,7 +13,7 @@ class Hatch(BaseModel):
|
|
13
13
|
id (str):
|
14
14
|
model_name (str, optional): 使用的模型名稱,預設為空字串。
|
15
15
|
agent_model_name (str, optional): Agent 使用的模型名稱,預設為空字串。
|
16
|
-
prompt_template (str): 這個就是 system prompt
|
16
|
+
prompt_template (str, optional): 這個就是 system prompt,預設為空字串。
|
17
17
|
google_doc_link (str, optional): 如果 google_doc_link 啟動,會將 google doc 的內容放在 prompt_template 裡面,預設為空字串。
|
18
18
|
enable_google_doc_link (bool, optional): 是否啟用 Google Doc 搜尋,預設為 False。
|
19
19
|
user_prompt_prefix (str, optional): User prompt 前綴。
|
@@ -32,7 +32,7 @@ class Hatch(BaseModel):
|
|
32
32
|
id: str
|
33
33
|
model_name: str = ""
|
34
34
|
agent_model_name: str = ""
|
35
|
-
prompt_template: str
|
35
|
+
prompt_template: str = ""
|
36
36
|
google_doc_link: str = ""
|
37
37
|
enable_google_doc_link: bool = False
|
38
38
|
user_prompt_prefix: str = ""
|
@@ -0,0 +1,20 @@
|
|
1
|
+
from typing import Optional
|
2
|
+
from pydantic import BaseModel
|
3
|
+
from datetime import datetime
|
4
|
+
|
5
|
+
|
6
|
+
class HatchWebhook(BaseModel):
|
7
|
+
"""
|
8
|
+
Hatch Webhook 資訊模型,用於追蹤 Google Drive webhook 註冊。
|
9
|
+
|
10
|
+
Args:
|
11
|
+
hatch_id (str): 關聯的 Hatch ID
|
12
|
+
channel_id (str): Google Drive 通知頻道 ID
|
13
|
+
resource_id (str): Google Drive 資源 ID
|
14
|
+
created_at (datetime, optional): 建立時間
|
15
|
+
"""
|
16
|
+
|
17
|
+
hatch_id: str
|
18
|
+
channel_id: str
|
19
|
+
resource_id: str
|
20
|
+
created_at: Optional[datetime] = None
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|