botrun-hatch 5.6.53__tar.gz → 5.6.61__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: botrun-hatch
3
- Version: 5.6.53
3
+ Version: 5.6.61
4
4
  Summary:
5
5
  Author: sebastian-hsu
6
6
  Author-email: sebastian.hsu@gmail.com
@@ -16,6 +16,7 @@ class Hatch(BaseModel):
16
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
+ last_sync_gdoc_time (Optional[str], optional): 上一次同步 Google Doc 的 UTC 時間,預設為 None。
19
20
  user_prompt_prefix (str, optional): User prompt 前綴。
20
21
  name (str, optional):
21
22
  is_default (bool, optional):
@@ -35,6 +36,7 @@ class Hatch(BaseModel):
35
36
  prompt_template: str = ""
36
37
  google_doc_link: str = ""
37
38
  enable_google_doc_link: bool = False
39
+ last_sync_gdoc_time: Optional[str] = None
38
40
  user_prompt_prefix: str = ""
39
41
  name: str = "" # 将 name 设为可选字段,默认为空字符串
40
42
  is_default: bool = False
@@ -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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "botrun-hatch"
3
- version = "5.6.53"
3
+ version = "5.6.61"
4
4
  description = ""
5
5
  authors = ["sebastian-hsu <sebastian.hsu@gmail.com>"]
6
6
  readme = "README.md"
File without changes