cwyodmodules 0.3.43__py3-none-any.whl → 0.3.44__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.
- cwyodmodules/batch/utilities/helpers/config/agent_mode.py +6 -0
- cwyodmodules/batch/utilities/helpers/config/config_helper.py +9 -0
- cwyodmodules/batch/utilities/helpers/config/default.json +2 -1
- {cwyodmodules-0.3.43.dist-info → cwyodmodules-0.3.44.dist-info}/METADATA +1 -1
- {cwyodmodules-0.3.43.dist-info → cwyodmodules-0.3.44.dist-info}/RECORD +8 -7
- {cwyodmodules-0.3.43.dist-info → cwyodmodules-0.3.44.dist-info}/WHEEL +0 -0
- {cwyodmodules-0.3.43.dist-info → cwyodmodules-0.3.44.dist-info}/licenses/LICENSE +0 -0
- {cwyodmodules-0.3.43.dist-info → cwyodmodules-0.3.44.dist-info}/top_level.txt +0 -0
@@ -13,6 +13,7 @@ from ..env_helper import EnvHelper
|
|
13
13
|
from .assistant_strategy import AssistantStrategy
|
14
14
|
from .conversation_flow import ConversationFlow
|
15
15
|
from .database_type import DatabaseType
|
16
|
+
from .agent_mode import AgentMode
|
16
17
|
|
17
18
|
CONFIG_CONTAINER_NAME = "config"
|
18
19
|
CONFIG_FILE_NAME = "active.json"
|
@@ -59,6 +60,7 @@ class Config:
|
|
59
60
|
self.conversational_flow = config.get(
|
60
61
|
"conversational_flow", self.env_helper.CONVERSATION_FLOW
|
61
62
|
)
|
63
|
+
self.agent_mode = config.get("agent_mode", AgentMode.NORMAL.value)
|
62
64
|
|
63
65
|
@logger.trace_function(log_execution=log_execution, log_args=log_args, log_result=log_result)
|
64
66
|
def get_available_document_types(self) -> list[str]:
|
@@ -103,6 +105,10 @@ class Config:
|
|
103
105
|
def get_available_conversational_flows(self):
|
104
106
|
return [c.value for c in ConversationFlow]
|
105
107
|
|
108
|
+
@logger.trace_function(log_execution=log_execution, log_args=log_args, log_result=log_result)
|
109
|
+
def get_available_agent_modes(self):
|
110
|
+
return [c.value for c in AgentMode]
|
111
|
+
|
106
112
|
|
107
113
|
# TODO: Change to AnsweringChain or something, Prompts is not a good name
|
108
114
|
class Prompts:
|
@@ -198,6 +204,9 @@ class ConfigHelper:
|
|
198
204
|
]
|
199
205
|
if config.get("enable_chat_history") is None:
|
200
206
|
config["enable_chat_history"] = default_config["enable_chat_history"]
|
207
|
+
|
208
|
+
if config.get("agent_mode") is None:
|
209
|
+
config["agent_mode"] = default_config["agent_mode"]
|
201
210
|
|
202
211
|
@staticmethod
|
203
212
|
@functools.cache
|
@@ -41,11 +41,12 @@ cwyodmodules/batch/utilities/helpers/lightrag_helper.py,sha256=7lb9JMm5IohsO73LW
|
|
41
41
|
cwyodmodules/batch/utilities/helpers/llm_helper.py,sha256=lHLYrUidtaemmKrVbWoo7oIvwluUoPUk16U5lV-YIX8,8282
|
42
42
|
cwyodmodules/batch/utilities/helpers/orchestrator_helper.py,sha256=mCcZyMFG0otnw9gzWd-PYocHmDdFDVg-RT9oDPiDZPk,897
|
43
43
|
cwyodmodules/batch/utilities/helpers/secret_helper.py,sha256=RYDPR-1c7uChfmAJfzvN_GiI4u6czyWZ67XQah0hla4,2756
|
44
|
+
cwyodmodules/batch/utilities/helpers/config/agent_mode.py,sha256=8XMbu8dwMXva_xxeZNDlwOjDaZwIcwc-xJK1-QsaJ3w,82
|
44
45
|
cwyodmodules/batch/utilities/helpers/config/assistant_strategy.py,sha256=uT8h646zEURU9x8oDOH7pWoZKb0Mw6dA2nJtA2M-ufg,171
|
45
|
-
cwyodmodules/batch/utilities/helpers/config/config_helper.py,sha256=
|
46
|
+
cwyodmodules/batch/utilities/helpers/config/config_helper.py,sha256=GJBmSrnSnKhJQHA9Brj3CIxuPdJQ__XNjQvWQa4iLkY,15323
|
46
47
|
cwyodmodules/batch/utilities/helpers/config/conversation_flow.py,sha256=4nP8a-I-sME5-2unzWWBNpTzWdfpfc5_EAYU6Pn6LAQ,94
|
47
48
|
cwyodmodules/batch/utilities/helpers/config/database_type.py,sha256=Zmmlh1NAKDdd-2ei478boncRKcx8v3lDkPf4kO2j4ss,132
|
48
|
-
cwyodmodules/batch/utilities/helpers/config/default.json,sha256=
|
49
|
+
cwyodmodules/batch/utilities/helpers/config/default.json,sha256=LIQNj5TpzmN6YPNZOmwngO4p9us3GDc2N18w-KQ4mw8,15282
|
49
50
|
cwyodmodules/batch/utilities/helpers/config/default_contract_assistant_prompt.txt,sha256=X39WGcxzQPIvqG7NpAMPsgmSwSyMEoK1DVWiuEHEHRg,3210
|
50
51
|
cwyodmodules/batch/utilities/helpers/config/default_employee_assistant_prompt.txt,sha256=toQFo0wXYrEK7zAItAS9rbtyhT6DJZKBhiL6C9VPUQk,3942
|
51
52
|
cwyodmodules/batch/utilities/helpers/config/embedding_config.py,sha256=9pCJxpsouln9dngjVHaKGFYP14PrwmSts_UFDytSiVk,950
|
@@ -108,8 +109,8 @@ cwyodmodules/graphrag/query/generate.py,sha256=xBnZs2U9xFWtPk4AfAZgYKbHdcxNcIO6Q
|
|
108
109
|
cwyodmodules/graphrag/query/graph_search.py,sha256=95h3ecSWx4864XgKABtG0fh3Nk8HkqJVzoCrO8daJ-Y,7724
|
109
110
|
cwyodmodules/graphrag/query/types.py,sha256=1Iq1dp4I4a56_cuFjOZ0NTgd0A2_MpVFznp_czgt6cI,617
|
110
111
|
cwyodmodules/graphrag/query/vector_search.py,sha256=9Gwu9LPjtoAYUU8WKqCvbCHAIg3dpk71reoYd1scLnQ,1807
|
111
|
-
cwyodmodules-0.3.
|
112
|
-
cwyodmodules-0.3.
|
113
|
-
cwyodmodules-0.3.
|
114
|
-
cwyodmodules-0.3.
|
115
|
-
cwyodmodules-0.3.
|
112
|
+
cwyodmodules-0.3.44.dist-info/licenses/LICENSE,sha256=UqBDTipijsSW2ZSOXyTZnMsXmLoEHTgNEM0tL4g-Sso,1150
|
113
|
+
cwyodmodules-0.3.44.dist-info/METADATA,sha256=oGvSCI0ocoOWPVt2ADEKOOIa_JTsM_5v6ekG_TNuBRo,2002
|
114
|
+
cwyodmodules-0.3.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
115
|
+
cwyodmodules-0.3.44.dist-info/top_level.txt,sha256=99RENLbkdRX-qpJvsxZ5AfmTL5s6shSaKOWYpz1vwzg,13
|
116
|
+
cwyodmodules-0.3.44.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|