iatoolkit 0.4.4__tar.gz → 0.5.0__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.
Potentially problematic release.
This version of iatoolkit might be problematic. Click here for more details.
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/PKG-INFO +1 -1
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/pyproject.toml +1 -1
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/base_company.py +6 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit.egg-info/PKG-INFO +1 -1
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/dispatcher_service.py +13 -7
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/readme.md +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/requirements.txt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/setup.cfg +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/__init__.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/cli_commands.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/company_registry.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/iatoolkit.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/system_prompts/format_styles.prompt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/system_prompts/query_main.prompt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit/system_prompts/sql_rules.prompt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit.egg-info/SOURCES.txt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit.egg-info/dependency_links.txt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit.egg-info/requires.txt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/iatoolkit.egg-info/top_level.txt +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/__init__.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/api_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/benchmark_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/document_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/excel_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/file_processor_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/history_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/jwt_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/load_documents_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/mail_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/profile_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/prompt_manager_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/query_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/search_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/sql_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/tasks_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/user_feedback_service.py +0 -0
- {iatoolkit-0.4.4 → iatoolkit-0.5.0}/src/services/user_session_context_service.py +0 -0
|
@@ -49,5 +49,11 @@ class BaseCompany(ABC):
|
|
|
49
49
|
"""
|
|
50
50
|
pass
|
|
51
51
|
|
|
52
|
+
def get_ui_component_config(self)-> dict:
|
|
53
|
+
"""
|
|
54
|
+
optional method for a company definition of it's UI config
|
|
55
|
+
"""
|
|
56
|
+
pass
|
|
57
|
+
|
|
52
58
|
def unsupported_operation(self, tag):
|
|
53
59
|
raise NotImplementedError(f"La operación '{tag}' no está soportada por esta empresa.")
|
|
@@ -217,6 +217,19 @@ class Dispatcher:
|
|
|
217
217
|
|
|
218
218
|
return normalized_user
|
|
219
219
|
|
|
220
|
+
def get_ui_component_config(self, company_name: str) -> dict:
|
|
221
|
+
if company_name not in self.company_instances:
|
|
222
|
+
raise IAToolkitException(IAToolkitException.ErrorType.EXTERNAL_SOURCE_ERROR,
|
|
223
|
+
f"Empresa no configurada: {company_name}")
|
|
224
|
+
|
|
225
|
+
company_instance = self.company_instances[company_name]
|
|
226
|
+
try:
|
|
227
|
+
return company_instance.get_ui_component_config()
|
|
228
|
+
except Exception as e:
|
|
229
|
+
logging.exception(e)
|
|
230
|
+
raise IAToolkitException(IAToolkitException.ErrorType.EXTERNAL_SOURCE_ERROR,
|
|
231
|
+
f"Error en get_ui_component_config de {company_name}: {str(e)}") from e
|
|
232
|
+
|
|
220
233
|
def get_metadata_from_filename(self, company_name: str, filename: str) -> dict:
|
|
221
234
|
if company_name not in self.company_instances:
|
|
222
235
|
raise IAToolkitException(IAToolkitException.ErrorType.EXTERNAL_SOURCE_ERROR,
|
|
@@ -234,13 +247,6 @@ class Dispatcher:
|
|
|
234
247
|
"""Returns the instance for a given company name."""
|
|
235
248
|
return self.company_instances.get(company_name)
|
|
236
249
|
|
|
237
|
-
def get_registered_companies(self) -> dict:
|
|
238
|
-
"""Gets all registered companies (for debugging/admin purposes)"""
|
|
239
|
-
return {
|
|
240
|
-
"registered_classes": list(self.company_registry.get_registered_companies().keys()),
|
|
241
|
-
"instantiated": list(self.company_instances.keys()),
|
|
242
|
-
"count": len(self.company_instances)
|
|
243
|
-
}
|
|
244
250
|
|
|
245
251
|
|
|
246
252
|
# iatoolkit system prompts
|
|
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
|
|
File without changes
|
|
File without changes
|