aiecs 1.0.6__py3-none-any.whl → 1.0.8__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 aiecs might be problematic. Click here for more details.

aiecs/__init__.py CHANGED
@@ -5,7 +5,7 @@ A powerful Python middleware framework for building AI-powered applications
5
5
  with tool orchestration, task execution, and multi-provider LLM support.
6
6
  """
7
7
 
8
- __version__ = "1.0.6"
8
+ __version__ = "1.0.8"
9
9
  __author__ = "AIECS Team"
10
10
  __email__ = "iretbl@gmail.com"
11
11
 
@@ -25,11 +25,14 @@ _global_context_engine: Optional['ContextEngine'] = None
25
25
  _initialization_lock = asyncio.Lock()
26
26
  _initialized = False
27
27
 
28
- try:
29
- from aiecs.domain.context.context_engine import ContextEngine
30
- except ImportError:
31
- ContextEngine = None
32
- logger.warning("ContextEngine not available - aiecs package may not be installed")
28
+ def _get_context_engine_class():
29
+ """Lazy import of ContextEngine to avoid circular dependencies."""
30
+ try:
31
+ from aiecs.domain.context.context_engine import ContextEngine
32
+ return ContextEngine
33
+ except ImportError as e:
34
+ logger.warning(f"ContextEngine not available - {e}")
35
+ return None
33
36
 
34
37
 
35
38
  async def initialize_context_engine(use_existing_redis: bool = True) -> Optional['ContextEngine']:
@@ -66,6 +69,7 @@ async def initialize_context_engine(use_existing_redis: bool = True) -> Optional
66
69
  if _initialized and _global_context_engine:
67
70
  return _global_context_engine
68
71
 
72
+ ContextEngine = _get_context_engine_class()
69
73
  if not ContextEngine:
70
74
  logger.error("ContextEngine class not available - cannot initialize")
71
75
  return None
aiecs/llm/__init__.py CHANGED
@@ -26,6 +26,7 @@ from .client_factory import (
26
26
 
27
27
  from .openai_client import OpenAIClient
28
28
  from .vertex_client import VertexAIClient
29
+ from .googleai_client import GoogleAIClient
29
30
  from .xai_client import XAIClient
30
31
 
31
32
  __all__ = [
@@ -46,6 +47,7 @@ __all__ = [
46
47
  # Individual clients
47
48
  'OpenAIClient',
48
49
  'VertexAIClient',
50
+ 'GoogleAIClient',
49
51
  'XAIClient',
50
52
 
51
53
  # Convenience functions
@@ -4,7 +4,7 @@ import os
4
4
  from typing import Dict, Any, Optional, List, AsyncGenerator
5
5
 
6
6
  import google.generativeai as genai
7
- from google.generativeai.types import GenerationConfig, SafetySetting, HarmCategory, HarmBlockThreshold
7
+ from google.generativeai.types import GenerationConfig, HarmCategory, HarmBlockThreshold
8
8
 
9
9
  from aiecs.llm.base_client import BaseLLMClient, LLMMessage, LLMResponse, ProviderNotAvailableError, RateLimitError
10
10
  from aiecs.config.config import get_settings
aiecs/main.py CHANGED
@@ -131,7 +131,7 @@ async def health_check():
131
131
  return {
132
132
  "status": "healthy",
133
133
  "service": "aiecs",
134
- "version": "1.0.6"
134
+ "version": "1.0.8"
135
135
  }
136
136
 
137
137
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiecs
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Summary: AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration
5
5
  Author-email: AIECS Team <iretbl@gmail.com>
6
6
  License-Expression: MIT
@@ -38,6 +38,7 @@ Requires-Dist: tenacity<10.0.0,>=9.1.2
38
38
  Requires-Dist: flower<3.0.0,>=2.0.1
39
39
  Requires-Dist: openai<1.76.0,>=1.68.2
40
40
  Requires-Dist: google-cloud-aiplatform<2.0.0,>=1.80.0
41
+ Requires-Dist: google-generativeai<1.0.0,>=0.8.0
41
42
  Requires-Dist: langchain<0.4.0,>=0.3.26
42
43
  Requires-Dist: langgraph<0.6.0,>=0.5.3
43
44
  Requires-Dist: weasel==0.4.1
@@ -1,7 +1,7 @@
1
- aiecs/__init__.py,sha256=ZIgFPG0dINayY77VaITRQLuDgArYDO09bDPJTzm2b6E,1859
1
+ aiecs/__init__.py,sha256=zpnR1q-oVV0A33XKQ9SL8BUKjPJ_9Q8aYExfTgRFIhI,1859
2
2
  aiecs/__main__.py,sha256=AfQpzy3SgwWuP4DuymYcm4MISMuzqwhxxGSYo53PBvY,1035
3
3
  aiecs/aiecs_client.py,sha256=gJbCY6zuHR9TZPCgHhxd-d4CwCW9P_lUrtTSC5-ADWE,10527
4
- aiecs/main.py,sha256=upttzQx0t30O8ivADW-NaEOMCIyirwhJ5nL5wcQ0SkY,9306
4
+ aiecs/main.py,sha256=cULUXEONsei-2jl7Y8YCAYoyCvJEpoTgt-i3mY9p3JU,9306
5
5
  aiecs/application/__init__.py,sha256=NkmrUH1DqxJ3vaVC8QwscNdlWqHfC7ZagL4k3nZ_qz4,192
6
6
  aiecs/application/executors/__init__.py,sha256=WIl7L9HBsEhNfbNtJdvBvFUJXzESvNZVaiAA6tdtJcs,191
7
7
  aiecs/application/executors/operation_executor.py,sha256=-7mFo1hUnWdehVPg0fnSiRhW3LACpIiyLSH-iu7bX4U,13818
@@ -37,15 +37,15 @@ aiecs/infrastructure/monitoring/executor_metrics.py,sha256=z8KJpq6tfCOEArfR-YJ4U
37
37
  aiecs/infrastructure/monitoring/structured_logger.py,sha256=iI895YHmPoaLdXjxHxd952PeTfGw6sh-yUDCnF8R7NY,1657
38
38
  aiecs/infrastructure/monitoring/tracing_manager.py,sha256=g4u6paNCZCYdGDEMZiv4bYv_GTG0s8oug-BJgFmkDp0,13449
39
39
  aiecs/infrastructure/persistence/__init__.py,sha256=yoog7fEHmhgY50vGdgDNqiZCPUUL2-xnJrdhT5PrPWU,570
40
- aiecs/infrastructure/persistence/context_engine_client.py,sha256=CCVjNU4B3SeXdSLVpzV5hnsJilcF-AYdMzGmU0Bcwuo,5880
40
+ aiecs/infrastructure/persistence/context_engine_client.py,sha256=KIzreimtg6WbuBYI4U0JTiRmNddpdpKHnGvuHVh86Hs,6051
41
41
  aiecs/infrastructure/persistence/database_manager.py,sha256=MRkMTALeeybzAfnfuJrOXbEchBCrMAgsz8YYyEUVMjI,12592
42
42
  aiecs/infrastructure/persistence/file_storage.py,sha256=d3tcV7Wg_-TGsbw3PY9ttNANntR5rIo7mBgE0CGXKZQ,23321
43
43
  aiecs/infrastructure/persistence/redis_client.py,sha256=CqPtYFP8-KHl3cJG9VHun9YFFSp3kCc3ZaZbW7GlqUU,5791
44
- aiecs/llm/__init__.py,sha256=EsOIu25eDnhEYKZDb1h_O9RxYIF7vaiORUZSUipzhsM,1084
44
+ aiecs/llm/__init__.py,sha256=INfMR-xeQ0K53iXf_LRMVdo-hDXooIoAcmXRemLWmjQ,1150
45
45
  aiecs/llm/base_client.py,sha256=R4B-KBJ0aCEuvni5XwHd6sR3XNYQF3q1ZycgQvCJUfk,3275
46
46
  aiecs/llm/client_factory.py,sha256=qvQXo0kIcGC6SzIE7xfCN0f7CcGNKPwauFq2mTUP0SA,13718
47
47
  aiecs/llm/custom_callbacks.py,sha256=qwNwWqBl8EYj2aY16zXChZKLpxZahU9QeY4p57uZ5YU,9933
48
- aiecs/llm/googleai_client.py,sha256=a3MclaeVr0ACYHenbWAwSUdEp7K-UumHOSf7uFbNeHY,6228
48
+ aiecs/llm/googleai_client.py,sha256=4cJuhdzzn-svM7NLnYASYsnV2P758EeD5_ljVZu_XFc,6213
49
49
  aiecs/llm/openai_client.py,sha256=T3-LMDV-bzv0fwyDCw6h9D2XbNbWd0dt-QmjKg-wkd0,4397
50
50
  aiecs/llm/vertex_client.py,sha256=DSKyTwlhpOVTXfCTgTD7NholVFtVm7F5qmHk8p8X1Po,10823
51
51
  aiecs/llm/xai_client.py,sha256=VYfBGD8ns6NHscT68DDmAmvwBMEVykLQufH8kFNf_L8,6809
@@ -90,9 +90,9 @@ aiecs/utils/prompt_loader.py,sha256=cBS2bZXpYQOWSiOGkhwIzyy3_bETqwIblRi_9qQT9iQ,
90
90
  aiecs/utils/token_usage_repository.py,sha256=1xjenLYwC0YT6lKZFEGO4scRCXLuWdec2MWjzih5SZY,10210
91
91
  aiecs/ws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
92
  aiecs/ws/socket_server.py,sha256=j_9idVY_rWlTsF51FgmuhWCWFVt7_gAHL8vNg3IxV5g,1476
93
- aiecs-1.0.6.dist-info/licenses/LICENSE,sha256=_1YRaIS0eZu1pv6xfz245UkU0i1Va2B841hv3OWRwqg,12494
94
- aiecs-1.0.6.dist-info/METADATA,sha256=HqQKQnmxVEhmSLLErxXSnupdwBhKWCBto5ON72u5ph0,16388
95
- aiecs-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
96
- aiecs-1.0.6.dist-info/entry_points.txt,sha256=0Bj2pSaZM-ADKTktbCQ0KQxRe0s8mQFKVsg3IGDJGqA,342
97
- aiecs-1.0.6.dist-info/top_level.txt,sha256=22IlUlOqh9Ni3jXlQNMNUqzbW8dcxXPeR_EQ-BJVcV8,6
98
- aiecs-1.0.6.dist-info/RECORD,,
93
+ aiecs-1.0.8.dist-info/licenses/LICENSE,sha256=_1YRaIS0eZu1pv6xfz245UkU0i1Va2B841hv3OWRwqg,12494
94
+ aiecs-1.0.8.dist-info/METADATA,sha256=BPAOsiV6ijKvWuNY9IFR6zZfpRdHWsZgs66v0J73HM4,16437
95
+ aiecs-1.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
96
+ aiecs-1.0.8.dist-info/entry_points.txt,sha256=0Bj2pSaZM-ADKTktbCQ0KQxRe0s8mQFKVsg3IGDJGqA,342
97
+ aiecs-1.0.8.dist-info/top_level.txt,sha256=22IlUlOqh9Ni3jXlQNMNUqzbW8dcxXPeR_EQ-BJVcV8,6
98
+ aiecs-1.0.8.dist-info/RECORD,,
File without changes