botrun-hatch 5.5.201__py3-none-any.whl → 5.6.52__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.
Potentially problematic release.
This version of botrun-hatch might be problematic. Click here for more details.
botrun_hatch/models/hatch.py
CHANGED
@@ -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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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, optional): 如果 google_doc_link 啟動,會將 google doc 的內容放在 prompt_template 裡面,預設為空字串。
|
18
|
+
enable_google_doc_link (bool, optional): 是否啟用 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 = False
|
20
38
|
user_prompt_prefix: str = ""
|
21
39
|
name: str = "" # 将 name 设为可选字段,默认为空字符串
|
22
40
|
is_default: bool = False
|
@@ -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=
|
3
|
+
botrun_hatch/models/hatch.py,sha256=qJuowb_uyeCli-fwtTetOOad5LYRSKVmPxxzPk1eMNI,1733
|
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.
|
8
|
-
botrun_hatch-5.
|
9
|
-
botrun_hatch-5.
|
7
|
+
botrun_hatch-5.6.52.dist-info/METADATA,sha256=9xGDV8Bue4bAz4P8Z661HLgT1fCM_ugUivJVqThS_ao,458
|
8
|
+
botrun_hatch-5.6.52.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
9
|
+
botrun_hatch-5.6.52.dist-info/RECORD,,
|
File without changes
|