cwyodmodules 0.3.48__tar.gz → 0.3.49__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.
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/PKG-INFO +1 -1
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/mgmt_config.py +48 -32
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules.egg-info/PKG-INFO +1 -1
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/pyproject.toml +1 -1
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/LICENSE +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/README.md +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/api/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/api/chat_history.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/auth_utils.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/cosmosdb.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/database_client_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/database_factory.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/postgresdbservice.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/sample_user.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/common/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/common/answer.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/common/source_document.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/chunking_strategy.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/document_chunking_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/fixed_size_overlap.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/layout.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/page.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/paragraph.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/strategies.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/document_loading_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/layout.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/read.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/strategies.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/web.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/word_document.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/azure_blob_storage_client.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/azure_computer_vision_client.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/azure_form_recognizer_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/azure_postgres_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/azure_postgres_helper_light_rag.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/azure_search_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/agent_mode.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/assistant_strategy.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/config_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/conversation_flow.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/database_type.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/default.json +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/default_contract_assistant_prompt.txt +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/default_employee_assistant_prompt.txt +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/embedding_config.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/document_chunking_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/document_loading_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/embedders/embedder_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/embedders/embedder_factory.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/embedders/integrated_vectorization_embedder.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/embedders/postgres_embedder.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/embedders/push_embedder.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/env_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/lightrag_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/llm_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/orchestrator_helper.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_datasource.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_index.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_indexer.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/integrated_vectorization/azure_search_skillset.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/loggers/conversation_logger.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/lang_chain_agent.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/open_ai_functions.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/orchestration_strategy.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/orchestrator_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/prompt_flow.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/semantic_kernel_orchestrator.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/strategies.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/parser/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/parser/output_parser_tool.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/parser/parser_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/plugins/chat_plugin.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/plugins/outlook_calendar_plugin.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/plugins/post_answering_plugin.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/azure_search_handler.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/azure_search_handler_light_rag.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/integrated_vectorization_search_handler.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/lightrag_search_handler.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/postgres_search_handler.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/postgres_search_handler_light_rag.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/search.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/search/search_handler_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/answer_processing_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/answering_tool_base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/content_safety_checker.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/post_prompt_tool.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/question_answer_tool.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/text_processing_tool.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/config.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/database/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/database/base.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/database/models.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/indexing/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/indexing/chunking.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/indexing/extraction.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/indexing/types.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/indexing/upsert.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/indexing/utils.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/llm/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/llm/llm.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/llm/prompt.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/main.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/query/__init__.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/query/generate.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/query/graph_search.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/query/types.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/graphrag/query/vector_search.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules.egg-info/SOURCES.txt +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules.egg-info/dependency_links.txt +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules.egg-info/requires.txt +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules.egg-info/top_level.txt +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/setup.cfg +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/tests/test_api.py +0 -0
- {cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/tests/test_batch.py +0 -0
@@ -1,24 +1,24 @@
|
|
1
1
|
"""
|
2
2
|
Azure Project Management Configuration Template
|
3
3
|
|
4
|
-
This template provides standardized configuration for Azure logging
|
5
|
-
|
6
|
-
|
7
|
-
throughout your application.
|
4
|
+
This template provides standardized configuration for Azure logging and identity
|
5
|
+
management across projects. It creates singleton instances of AzureLogger and
|
6
|
+
AzureIdentity that can be imported and used throughout your application.
|
8
7
|
|
9
8
|
Usage:
|
10
|
-
from mgmt_config import logger, identity
|
9
|
+
from mgmt_config import logger, identity
|
11
10
|
|
12
11
|
logger.info("Application started")
|
13
12
|
credential = identity.get_credential()
|
14
|
-
secret = keyvault.get_secret("my-secret") if keyvault else None
|
15
13
|
"""
|
16
14
|
|
17
15
|
import os
|
18
16
|
from typing import Optional, Dict, Any
|
19
|
-
from azpaddypy.mgmt.logging import create_app_logger
|
17
|
+
from azpaddypy.mgmt.logging import create_app_logger, create_function_logger
|
20
18
|
from azpaddypy.mgmt.identity import create_azure_identity
|
21
|
-
from azpaddypy.resources.keyvault import create_azure_keyvault
|
19
|
+
from azpaddypy.resources.keyvault import create_azure_keyvault
|
20
|
+
|
21
|
+
# Alias for import in other packages
|
22
22
|
|
23
23
|
# =============================================================================
|
24
24
|
# SERVICE CONFIGURATION
|
@@ -68,29 +68,40 @@ IDENTITY_CONNECTION_STRING = LOGGER_CONNECTION_STRING
|
|
68
68
|
# KEYVAULT CONFIGURATION
|
69
69
|
# =============================================================================
|
70
70
|
|
71
|
-
#
|
71
|
+
# Azure Key Vault URL (required for Key Vault operations)
|
72
72
|
KEYVAULT_URL = os.getenv("key_vault_uri")
|
73
|
+
HEAD_KEYVAULT_URL = os.getenv("head_key_vault_uri")
|
73
74
|
|
74
|
-
#
|
75
|
+
# Enable specific Key Vault client types
|
75
76
|
KEYVAULT_ENABLE_SECRETS = os.getenv("KEYVAULT_ENABLE_SECRETS", "true").lower() == "true"
|
76
77
|
KEYVAULT_ENABLE_KEYS = os.getenv("KEYVAULT_ENABLE_KEYS", "false").lower() == "true"
|
77
78
|
KEYVAULT_ENABLE_CERTIFICATES = os.getenv("KEYVAULT_ENABLE_CERTIFICATES", "false").lower() == "true"
|
78
79
|
|
79
|
-
# Connection string for
|
80
|
+
# Connection string for keyvault logging (uses same as logger by default)
|
80
81
|
KEYVAULT_CONNECTION_STRING = LOGGER_CONNECTION_STRING
|
81
82
|
|
82
83
|
# =============================================================================
|
83
84
|
# INITIALIZE SERVICES
|
84
85
|
# =============================================================================
|
85
|
-
|
86
86
|
# Create logger instance
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
87
|
+
if "functionapp" in os.getenv("REFLECTION_KIND", "app"):
|
88
|
+
logger = create_function_logger(
|
89
|
+
function_app_name=os.getenv("REFLECTION_NAME", "app"),
|
90
|
+
function_name="backend",
|
91
|
+
service_version=SERVICE_VERSION,
|
92
|
+
connection_string=LOGGER_CONNECTION_STRING,
|
93
|
+
instrumentation_options=LOGGER_INSTRUMENTATION_OPTIONS,
|
94
|
+
)
|
95
|
+
logger.info("Function logger initialized")
|
96
|
+
else:
|
97
|
+
logger = create_app_logger(
|
98
|
+
service_name=SERVICE_NAME,
|
99
|
+
service_version=SERVICE_VERSION,
|
100
|
+
connection_string=LOGGER_CONNECTION_STRING,
|
101
|
+
enable_console_logging=LOGGER_ENABLE_CONSOLE,
|
102
|
+
instrumentation_options=LOGGER_INSTRUMENTATION_OPTIONS,
|
103
|
+
)
|
104
|
+
logger.info("App logger initialized")
|
94
105
|
|
95
106
|
# Create identity instance with shared logger
|
96
107
|
identity = create_azure_identity(
|
@@ -103,7 +114,7 @@ identity = create_azure_identity(
|
|
103
114
|
logger=logger,
|
104
115
|
)
|
105
116
|
|
106
|
-
# Create
|
117
|
+
# Create keyvault instance with shared logger and identity (if URL is configured)
|
107
118
|
keyvault = None
|
108
119
|
if KEYVAULT_URL:
|
109
120
|
keyvault = create_azure_keyvault(
|
@@ -118,12 +129,10 @@ if KEYVAULT_URL:
|
|
118
129
|
enable_certificates=KEYVAULT_ENABLE_CERTIFICATES,
|
119
130
|
)
|
120
131
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
return create_azure_keyvault(
|
126
|
-
vault_url=vault_url,
|
132
|
+
head_keyvault = None
|
133
|
+
if HEAD_KEYVAULT_URL:
|
134
|
+
head_keyvault = create_azure_keyvault(
|
135
|
+
vault_url=HEAD_KEYVAULT_URL,
|
127
136
|
azure_identity=identity,
|
128
137
|
service_name=SERVICE_NAME,
|
129
138
|
service_version=SERVICE_VERSION,
|
@@ -139,7 +148,7 @@ def create_keyvault_client(vault_url: str) -> Optional[AzureKeyVault]:
|
|
139
148
|
# =============================================================================
|
140
149
|
|
141
150
|
# Validate critical configuration
|
142
|
-
if SERVICE_NAME ==
|
151
|
+
if SERVICE_NAME == __name__:
|
143
152
|
logger.warning(
|
144
153
|
"SERVICE_NAME is not configured. Please set SERVICE_NAME environment variable or update this template.",
|
145
154
|
extra={"configuration_issue": "service_name_not_set"}
|
@@ -153,10 +162,16 @@ if not LOGGER_CONNECTION_STRING:
|
|
153
162
|
|
154
163
|
if not KEYVAULT_URL:
|
155
164
|
logger.info(
|
156
|
-
"No
|
165
|
+
"No Key Vault URL configured. Key Vault operations will be disabled.",
|
157
166
|
extra={"keyvault_status": "disabled"}
|
158
167
|
)
|
159
168
|
|
169
|
+
if not HEAD_KEYVAULT_URL:
|
170
|
+
logger.info(
|
171
|
+
"No Head Key Vault URL configured. Head Key Vault operations will be disabled.",
|
172
|
+
extra={"head_keyvault_status": "disabled"}
|
173
|
+
)
|
174
|
+
|
160
175
|
# Log successful initialization
|
161
176
|
logger.info(
|
162
177
|
f"Management configuration initialized for service '{SERVICE_NAME}' v{SERVICE_VERSION}",
|
@@ -167,9 +182,10 @@ logger.info(
|
|
167
182
|
"token_cache_enabled": IDENTITY_ENABLE_TOKEN_CACHE,
|
168
183
|
"telemetry_enabled": bool(LOGGER_CONNECTION_STRING),
|
169
184
|
"keyvault_enabled": bool(KEYVAULT_URL),
|
170
|
-
"
|
171
|
-
"
|
172
|
-
"
|
185
|
+
"head_keyvault_enabled": bool(HEAD_KEYVAULT_URL),
|
186
|
+
"keyvault_secrets_enabled": KEYVAULT_ENABLE_SECRETS if KEYVAULT_URL else False,
|
187
|
+
"keyvault_keys_enabled": KEYVAULT_ENABLE_KEYS if KEYVAULT_URL else False,
|
188
|
+
"keyvault_certificates_enabled": KEYVAULT_ENABLE_CERTIFICATES if KEYVAULT_URL else False,
|
173
189
|
}
|
174
190
|
)
|
175
191
|
|
@@ -178,4 +194,4 @@ logger.info(
|
|
178
194
|
# =============================================================================
|
179
195
|
|
180
196
|
# Export logger, identity, and keyvault for use in applications
|
181
|
-
__all__ = ["logger", "identity", "keyvault", "
|
197
|
+
__all__ = ["logger", "identity", "keyvault", "head_keyvault"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/auth_utils.py
RENAMED
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/cosmosdb.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/chat_history/sample_user.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/common/source_document.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/layout.py
RENAMED
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_chunking/page.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/layout.py
RENAMED
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/read.py
RENAMED
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/document_loading/web.py
RENAMED
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/config/default.json
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/env_helper.py
RENAMED
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/lightrag_helper.py
RENAMED
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/helpers/llm_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/prompt_flow.py
RENAMED
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/orchestrator/strategies.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/parser/parser_base.py
RENAMED
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/plugins/chat_plugin.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cwyodmodules-0.3.48 → cwyodmodules-0.3.49}/cwyodmodules/batch/utilities/tools/post_prompt_tool.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|