cwyodmodules 0.3.43__tar.gz → 0.3.44__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.
Files changed (121) hide show
  1. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/PKG-INFO +1 -1
  2. cwyodmodules-0.3.44/cwyodmodules/batch/utilities/helpers/config/agent_mode.py +6 -0
  3. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/config_helper.py +9 -0
  4. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/default.json +2 -1
  5. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules.egg-info/PKG-INFO +1 -1
  6. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules.egg-info/SOURCES.txt +1 -0
  7. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/pyproject.toml +1 -1
  8. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/LICENSE +0 -0
  9. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/README.md +0 -0
  10. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/api/__init__.py +0 -0
  11. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/api/chat_history.py +0 -0
  12. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/__init__.py +0 -0
  13. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/__init__.py +0 -0
  14. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/chat_history/auth_utils.py +0 -0
  15. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/chat_history/cosmosdb.py +0 -0
  16. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/chat_history/database_client_base.py +0 -0
  17. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/chat_history/database_factory.py +0 -0
  18. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/chat_history/postgresdbservice.py +0 -0
  19. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/chat_history/sample_user.py +0 -0
  20. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/common/__init__.py +0 -0
  21. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/common/answer.py +0 -0
  22. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/common/source_document.py +0 -0
  23. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/__init__.py +0 -0
  24. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/chunking_strategy.py +0 -0
  25. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/document_chunking_base.py +0 -0
  26. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/fixed_size_overlap.py +0 -0
  27. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/layout.py +0 -0
  28. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/page.py +0 -0
  29. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/paragraph.py +0 -0
  30. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_chunking/strategies.py +0 -0
  31. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/__init__.py +0 -0
  32. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/document_loading_base.py +0 -0
  33. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/layout.py +0 -0
  34. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/read.py +0 -0
  35. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/strategies.py +0 -0
  36. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/web.py +0 -0
  37. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/document_loading/word_document.py +0 -0
  38. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/__init__.py +0 -0
  39. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/azure_blob_storage_client.py +0 -0
  40. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/azure_computer_vision_client.py +0 -0
  41. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/azure_form_recognizer_helper.py +0 -0
  42. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/azure_postgres_helper.py +0 -0
  43. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/azure_postgres_helper_light_rag.py +0 -0
  44. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/azure_search_helper.py +0 -0
  45. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/assistant_strategy.py +0 -0
  46. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/conversation_flow.py +0 -0
  47. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/database_type.py +0 -0
  48. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/default_contract_assistant_prompt.txt +0 -0
  49. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/default_employee_assistant_prompt.txt +0 -0
  50. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/config/embedding_config.py +0 -0
  51. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/document_chunking_helper.py +0 -0
  52. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/document_loading_helper.py +0 -0
  53. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/embedders/embedder_base.py +0 -0
  54. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/embedders/embedder_factory.py +0 -0
  55. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/embedders/integrated_vectorization_embedder.py +0 -0
  56. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/embedders/postgres_embedder.py +0 -0
  57. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/embedders/push_embedder.py +0 -0
  58. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/env_helper.py +0 -0
  59. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/lightrag_helper.py +0 -0
  60. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/llm_helper.py +0 -0
  61. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/orchestrator_helper.py +0 -0
  62. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/helpers/secret_helper.py +0 -0
  63. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_datasource.py +0 -0
  64. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_index.py +0 -0
  65. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_indexer.py +0 -0
  66. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_skillset.py +0 -0
  67. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/loggers/conversation_logger.py +0 -0
  68. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/__init__.py +0 -0
  69. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/lang_chain_agent.py +0 -0
  70. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/open_ai_functions.py +0 -0
  71. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/orchestration_strategy.py +0 -0
  72. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/orchestrator_base.py +0 -0
  73. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/prompt_flow.py +0 -0
  74. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py +0 -0
  75. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/orchestrator/strategies.py +0 -0
  76. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/parser/__init__.py +0 -0
  77. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/parser/output_parser_tool.py +0 -0
  78. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/parser/parser_base.py +0 -0
  79. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/plugins/chat_plugin.py +0 -0
  80. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/plugins/outlook_calendar_plugin.py +0 -0
  81. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/plugins/post_answering_plugin.py +0 -0
  82. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/azure_search_handler.py +0 -0
  83. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/azure_search_handler_light_rag.py +0 -0
  84. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/integrated_vectorization_search_handler.py +0 -0
  85. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/lightrag_search_handler.py +0 -0
  86. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/postgres_search_handler.py +0 -0
  87. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/postgres_search_handler_light_rag.py +0 -0
  88. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/search.py +0 -0
  89. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/search/search_handler_base.py +0 -0
  90. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/__init__.py +0 -0
  91. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/answer_processing_base.py +0 -0
  92. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/answering_tool_base.py +0 -0
  93. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/content_safety_checker.py +0 -0
  94. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/post_prompt_tool.py +0 -0
  95. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/question_answer_tool.py +0 -0
  96. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/batch/utilities/tools/text_processing_tool.py +0 -0
  97. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/__init__.py +0 -0
  98. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/config.py +0 -0
  99. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/database/__init__.py +0 -0
  100. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/database/base.py +0 -0
  101. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/database/models.py +0 -0
  102. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/indexing/__init__.py +0 -0
  103. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/indexing/chunking.py +0 -0
  104. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/indexing/extraction.py +0 -0
  105. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/indexing/types.py +0 -0
  106. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/indexing/upsert.py +0 -0
  107. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/indexing/utils.py +0 -0
  108. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/llm/__init__.py +0 -0
  109. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/llm/llm.py +0 -0
  110. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/llm/prompt.py +0 -0
  111. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/main.py +0 -0
  112. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/query/__init__.py +0 -0
  113. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/query/generate.py +0 -0
  114. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/query/graph_search.py +0 -0
  115. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/query/types.py +0 -0
  116. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/graphrag/query/vector_search.py +0 -0
  117. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules/mgmt_config.py +0 -0
  118. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules.egg-info/dependency_links.txt +0 -0
  119. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules.egg-info/requires.txt +0 -0
  120. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/cwyodmodules.egg-info/top_level.txt +0 -0
  121. {cwyodmodules-0.3.43 → cwyodmodules-0.3.44}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cwyodmodules
3
- Version: 0.3.43
3
+ Version: 0.3.44
4
4
  Summary: Add your description here
5
5
  Author-email: Patrik <patrikhartl@gmail.com>
6
6
  Classifier: Operating System :: OS Independent
@@ -0,0 +1,6 @@
1
+ from enum import Enum
2
+
3
+
4
+ class AgentMode(Enum):
5
+ OFF = "off"
6
+ ON = "on"
@@ -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
@@ -143,5 +143,6 @@
143
143
  "strategy": "${ORCHESTRATION_STRATEGY}"
144
144
  },
145
145
  "enable_chat_history": true,
146
- "database_type": "${DATABASE_TYPE}"
146
+ "database_type": "${DATABASE_TYPE}",
147
+ "agent_mode": "off"
147
148
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cwyodmodules
3
- Version: 0.3.43
3
+ Version: 0.3.44
4
4
  Summary: Add your description here
5
5
  Author-email: Patrik <patrikhartl@gmail.com>
6
6
  Classifier: Operating System :: OS Independent
@@ -49,6 +49,7 @@ cwyodmodules/batch/utilities/helpers/lightrag_helper.py
49
49
  cwyodmodules/batch/utilities/helpers/llm_helper.py
50
50
  cwyodmodules/batch/utilities/helpers/orchestrator_helper.py
51
51
  cwyodmodules/batch/utilities/helpers/secret_helper.py
52
+ cwyodmodules/batch/utilities/helpers/config/agent_mode.py
52
53
  cwyodmodules/batch/utilities/helpers/config/assistant_strategy.py
53
54
  cwyodmodules/batch/utilities/helpers/config/config_helper.py
54
55
  cwyodmodules/batch/utilities/helpers/config/conversation_flow.py
@@ -3,7 +3,7 @@ name = "cwyodmodules"
3
3
  authors = [
4
4
  { name="Patrik", email="patrikhartl@gmail.com" },
5
5
  ]
6
- version = '0.3.43'
6
+ version = '0.3.44'
7
7
  description = "Add your description here"
8
8
  readme = "README.md"
9
9
  requires-python = "==3.11.11"
File without changes
File without changes
File without changes