aiecs 1.3.1__py3-none-any.whl → 1.3.3__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 +1 -1
- aiecs/llm/clients/vertex_client.py +17 -2
- aiecs/main.py +2 -2
- {aiecs-1.3.1.dist-info → aiecs-1.3.3.dist-info}/METADATA +1 -1
- {aiecs-1.3.1.dist-info → aiecs-1.3.3.dist-info}/RECORD +9 -9
- {aiecs-1.3.1.dist-info → aiecs-1.3.3.dist-info}/WHEEL +0 -0
- {aiecs-1.3.1.dist-info → aiecs-1.3.3.dist-info}/entry_points.txt +0 -0
- {aiecs-1.3.1.dist-info → aiecs-1.3.3.dist-info}/licenses/LICENSE +0 -0
- {aiecs-1.3.1.dist-info → aiecs-1.3.3.dist-info}/top_level.txt +0 -0
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.3.
|
|
8
|
+
__version__ = "1.3.3"
|
|
9
9
|
__author__ = "AIECS Team"
|
|
10
10
|
__email__ = "iretbl@gmail.com"
|
|
11
11
|
|
|
@@ -141,8 +141,23 @@ class VertexAIClient(BaseLLMClient):
|
|
|
141
141
|
text_parts.append(part.text)
|
|
142
142
|
|
|
143
143
|
if text_parts:
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
# Handle multi-part response format
|
|
145
|
+
if len(text_parts) > 1:
|
|
146
|
+
# Multi-part response (typical for Gemini 2.5 with tool calling)
|
|
147
|
+
# Part 1: Thinking/reasoning content
|
|
148
|
+
# Part 2+: Actual output (JSON or other format)
|
|
149
|
+
|
|
150
|
+
# Wrap first part (thinking) in <thinking> tags
|
|
151
|
+
thinking_part = text_parts[0]
|
|
152
|
+
actual_output_parts = text_parts[1:]
|
|
153
|
+
|
|
154
|
+
# Format: <thinking>Part 1</thinking>\nPart 2\nPart 3...
|
|
155
|
+
content = f"<thinking>\n{thinking_part}\n</thinking>\n" + "\n".join(actual_output_parts)
|
|
156
|
+
self.logger.info(f"✅ Successfully wrapped multi-part response: {len(text_parts)} parts (thinking + output)")
|
|
157
|
+
else:
|
|
158
|
+
# Single part response - use as is
|
|
159
|
+
content = text_parts[0]
|
|
160
|
+
self.logger.info("Successfully extracted single-part response")
|
|
146
161
|
else:
|
|
147
162
|
self.logger.warning("No text content found in multi-part response")
|
|
148
163
|
except Exception as part_error:
|
aiecs/main.py
CHANGED
|
@@ -142,7 +142,7 @@ async def lifespan(app: FastAPI):
|
|
|
142
142
|
app = FastAPI(
|
|
143
143
|
title="AIECS - AI Execute Services",
|
|
144
144
|
description="Middleware service for AI-powered task execution and tool orchestration",
|
|
145
|
-
version="1.3.
|
|
145
|
+
version="1.3.3",
|
|
146
146
|
lifespan=lifespan
|
|
147
147
|
)
|
|
148
148
|
|
|
@@ -167,7 +167,7 @@ async def health_check():
|
|
|
167
167
|
return {
|
|
168
168
|
"status": "healthy",
|
|
169
169
|
"service": "aiecs",
|
|
170
|
-
"version": "1.3.
|
|
170
|
+
"version": "1.3.3"
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
aiecs/__init__.py,sha256=
|
|
1
|
+
aiecs/__init__.py,sha256=_1XRwx-1uwE4PsagfdYcA2kuDIrAOPxmK6OBVtKf_qA,1859
|
|
2
2
|
aiecs/__main__.py,sha256=AfQpzy3SgwWuP4DuymYcm4MISMuzqwhxxGSYo53PBvY,1035
|
|
3
3
|
aiecs/aiecs_client.py,sha256=gIqecRBBH_bYIWhqiHCemdVgmGb9Jqdxf1b6RoqXWlQ,17276
|
|
4
|
-
aiecs/main.py,sha256=
|
|
4
|
+
aiecs/main.py,sha256=QF_ln8faRFzoT-kTAC9ZbNVskodN9nkr22ZR_wQZfq8,10837
|
|
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
|
|
@@ -58,7 +58,7 @@ aiecs/llm/clients/__init__.py,sha256=uQM004TQappwJMqTxVZNscpVPQtirkvYUPea3QYB7d0
|
|
|
58
58
|
aiecs/llm/clients/base_client.py,sha256=j4NY-oEdG5ALBCSddblPpjttISn5teqLVVUuZyYn7g4,5880
|
|
59
59
|
aiecs/llm/clients/googleai_client.py,sha256=sTgdw4eicxWruNGOMSsuEHbfF9RuDQo8SClqEtu1JOQ,6591
|
|
60
60
|
aiecs/llm/clients/openai_client.py,sha256=x7Y_yTVu0kp-gu5Z-M0Bx-O20D0YDgZoJQxzkjNpr6c,4202
|
|
61
|
-
aiecs/llm/clients/vertex_client.py,sha256=
|
|
61
|
+
aiecs/llm/clients/vertex_client.py,sha256=jyyNMeRTJX-QtM95qjor-qA2iEOBO4s7940uv910_J4,12386
|
|
62
62
|
aiecs/llm/clients/xai_client.py,sha256=XEELb9_qFeeQaansDWvAJRJVpt8CaBRLcYskuv9uDq0,6386
|
|
63
63
|
aiecs/llm/config/__init__.py,sha256=KZbwHoBlbcN7HgNueA5p-0GpyVMJRNG1V5T-tkri8G4,1115
|
|
64
64
|
aiecs/llm/config/config_loader.py,sha256=PTMsZax3CoTrMo6BZlUoI7takII3_DHm3w5xTKgBJpA,8921
|
|
@@ -168,9 +168,9 @@ aiecs/utils/prompt_loader.py,sha256=cBS2bZXpYQOWSiOGkhwIzyy3_bETqwIblRi_9qQT9iQ,
|
|
|
168
168
|
aiecs/utils/token_usage_repository.py,sha256=1xjenLYwC0YT6lKZFEGO4scRCXLuWdec2MWjzih5SZY,10210
|
|
169
169
|
aiecs/ws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
170
170
|
aiecs/ws/socket_server.py,sha256=j_9idVY_rWlTsF51FgmuhWCWFVt7_gAHL8vNg3IxV5g,1476
|
|
171
|
-
aiecs-1.3.
|
|
172
|
-
aiecs-1.3.
|
|
173
|
-
aiecs-1.3.
|
|
174
|
-
aiecs-1.3.
|
|
175
|
-
aiecs-1.3.
|
|
176
|
-
aiecs-1.3.
|
|
171
|
+
aiecs-1.3.3.dist-info/licenses/LICENSE,sha256=_1YRaIS0eZu1pv6xfz245UkU0i1Va2B841hv3OWRwqg,12494
|
|
172
|
+
aiecs-1.3.3.dist-info/METADATA,sha256=5AuGrBEyu3n9K-4iQQUQTfdKsuuBucisZ8ip4JOWYQ4,16635
|
|
173
|
+
aiecs-1.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
174
|
+
aiecs-1.3.3.dist-info/entry_points.txt,sha256=TfLBuwLOfgQqKvnoF1sgTS19-Hgl0aWvCZjIdblIiig,667
|
|
175
|
+
aiecs-1.3.3.dist-info/top_level.txt,sha256=22IlUlOqh9Ni3jXlQNMNUqzbW8dcxXPeR_EQ-BJVcV8,6
|
|
176
|
+
aiecs-1.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|