botrun-hatch 5.5.201__py3-none-any.whl → 5.6.51__py3-none-any.whl

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,4 +1,4 @@
1
- from typing import List
1
+ from typing import List, Optional
2
2
  from pydantic import BaseModel, Field
3
3
 
4
4
  from botrun_hatch.models.upload_file import UploadFile
@@ -6,10 +6,26 @@ from botrun_hatch.models.upload_file import UploadFile
6
6
 
7
7
  class Hatch(BaseModel):
8
8
  """
9
- @user_prompt_prefix: 每次的 user prompt 前面都會加入這段文字
10
- @search_domain_filter: 搜尋的網域限制, 目前只有針對 perplexit 有效, 範例:["*.gov.tw", "-*.gov.cn"]
11
- @files: 上傳的檔案,這裡存的是 metadata,真正的檔案會存在 gcs,以 user_id/id 為 key來存,目前只會存extract後純文字的內容
12
- @agent_model_name: 使用 agent 時的 model 名稱
9
+ Hatch 設定模型。
10
+
11
+ Args:
12
+ user_id (str):
13
+ id (str):
14
+ model_name (str, optional): 使用的模型名稱,預設為空字串。
15
+ agent_model_name (str, optional): Agent 使用的模型名稱,預設為空字串。
16
+ prompt_template (str): 這個就是 system prompt。
17
+ google_doc_link (str): 如果 google_doc_link 啟動,會將 google doc 的內容放在 prompt_template 裡面。
18
+ enable_google_doc_link (bool): 是否啟用 Google Doc 搜尋,預設為 False。
19
+ user_prompt_prefix (str, optional): User prompt 前綴。
20
+ name (str, optional):
21
+ is_default (bool, optional):
22
+ enable_search (bool, optional):
23
+ related_question_prompt (str, optional):
24
+ search_vendor (str, optional):
25
+ search_domain_filter (List[str], optional):
26
+ files (List[UploadFile], optional):
27
+ enable_agent (bool, optional):
28
+ enable_api (bool, optional):
13
29
  """
14
30
 
15
31
  user_id: str
@@ -17,6 +33,8 @@ class Hatch(BaseModel):
17
33
  model_name: str = ""
18
34
  agent_model_name: str = ""
19
35
  prompt_template: str
36
+ google_doc_link: str
37
+ enable_google_doc_link: bool
20
38
  user_prompt_prefix: str = ""
21
39
  name: str = "" # 将 name 设为可选字段,默认为空字符串
22
40
  is_default: bool = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: botrun-hatch
3
- Version: 5.5.201
3
+ Version: 5.6.51
4
4
  Summary:
5
5
  Author: sebastian-hsu
6
6
  Author-email: sebastian.hsu@gmail.com
@@ -1,9 +1,9 @@
1
1
  botrun_hatch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  botrun_hatch/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- botrun_hatch/models/hatch.py,sha256=s1TDJvDMDR2tflFLnUG_slzropO3kff2mhceL4jyQig,1068
3
+ botrun_hatch/models/hatch.py,sha256=m6MCtMf5v0miOURBB68uproGOQ-IK9jyJoUJh1QShfM,1679
4
4
  botrun_hatch/models/hatch_sharing.py,sha256=76Dwrtlzh7sCjAXcWEy7dIfOwbNUGXYE7IGVve5jWhU,224
5
5
  botrun_hatch/models/upload_file.py,sha256=bl5gN7wE_mArZQHjZTH9v9O20us45MTcjCUI1iUv1yk,863
6
6
  botrun_hatch/models/user_setting.py,sha256=lgwcPPzjHXdd1xys3boQsFWp4VLyASVlPCAFKv5NLvA,227
7
- botrun_hatch-5.5.201.dist-info/METADATA,sha256=Xlq8VOOUF9pqQxCWEq9sXVhCsHRIXEaZx1q-xIXdqAM,459
8
- botrun_hatch-5.5.201.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
- botrun_hatch-5.5.201.dist-info/RECORD,,
7
+ botrun_hatch-5.6.51.dist-info/METADATA,sha256=-Otay_ekZAkokUUvWwqN0h-z9fSpnyVl3hMAQ8sC-sI,458
8
+ botrun_hatch-5.6.51.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
+ botrun_hatch-5.6.51.dist-info/RECORD,,