AbstractIntegratedModule 0.2.4__py3-none-any.whl → 0.2.6__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.
- AbstractIntegratedModule.py +8 -8
- {abstractintegratedmodule-0.2.4.dist-info → abstractintegratedmodule-0.2.6.dist-info}/METADATA +4 -2
- abstractintegratedmodule-0.2.6.dist-info/RECORD +5 -0
- abstractintegratedmodule-0.2.4.dist-info/RECORD +0 -5
- {abstractintegratedmodule-0.2.4.dist-info → abstractintegratedmodule-0.2.6.dist-info}/WHEEL +0 -0
- {abstractintegratedmodule-0.2.4.dist-info → abstractintegratedmodule-0.2.6.dist-info}/top_level.txt +0 -0
AbstractIntegratedModule.py
CHANGED
|
@@ -4752,7 +4752,7 @@ class AgentDistributedInference:
|
|
|
4752
4752
|
}
|
|
4753
4753
|
|
|
4754
4754
|
|
|
4755
|
-
def request_prediction(self, agent_id:
|
|
4755
|
+
def request_prediction(self, agent_id: Any, text: Any, timeout: float = 30.0) -> Any:
|
|
4756
4756
|
# Unified prediction request - works with both sync and async modes.
|
|
4757
4757
|
|
|
4758
4758
|
loop = asyncio.new_event_loop()
|
|
@@ -4833,7 +4833,7 @@ class AgentDistributedInference:
|
|
|
4833
4833
|
self.pending_requests.pop(request_id, None)
|
|
4834
4834
|
|
|
4835
4835
|
|
|
4836
|
-
async def request_prediction_async(self, agent_id:
|
|
4836
|
+
async def request_prediction_async(self, agent_id: Any, text: Any, timeout: float = 30.0, callback: Optional[Callable] = None):
|
|
4837
4837
|
# Asynchronous prediction request
|
|
4838
4838
|
# # Local bypass
|
|
4839
4839
|
if agent_id == 'local':
|
|
@@ -6431,7 +6431,7 @@ class IntegratedPipeline:
|
|
|
6431
6431
|
|
|
6432
6432
|
# ============ Async Prediction Methods ============
|
|
6433
6433
|
|
|
6434
|
-
def predict_async(self, text:
|
|
6434
|
+
def predict_async(self, text: Any, callback=None, timeout=30):
|
|
6435
6435
|
# Async prediction with callback support.
|
|
6436
6436
|
if not self.distribution or not self.distribution.use_async:
|
|
6437
6437
|
# Fallback to sync prediction
|
|
@@ -9409,7 +9409,7 @@ class PipelineAsyncManager:
|
|
|
9409
9409
|
traceback.print_exc()
|
|
9410
9410
|
|
|
9411
9411
|
|
|
9412
|
-
def _predict_sync(self, text:
|
|
9412
|
+
def _predict_sync(self, text: Any, timeout: float) -> Any:
|
|
9413
9413
|
# Internal synchronous prediction.
|
|
9414
9414
|
|
|
9415
9415
|
if not self._loop or not self._loop.is_running():
|
|
@@ -9451,7 +9451,7 @@ class PipelineAsyncManager:
|
|
|
9451
9451
|
finally:
|
|
9452
9452
|
self._remove_task(task_id)
|
|
9453
9453
|
|
|
9454
|
-
async def _predict_with_timeout(self, text:
|
|
9454
|
+
async def _predict_with_timeout(self, text: Any, timeout: float) -> Any:
|
|
9455
9455
|
# Async prediction with timeout.
|
|
9456
9456
|
try:
|
|
9457
9457
|
return await asyncio.wait_for(
|
|
@@ -9807,7 +9807,7 @@ class PipelineAsyncManager:
|
|
|
9807
9807
|
return result, chosen_label, confidence
|
|
9808
9808
|
|
|
9809
9809
|
|
|
9810
|
-
def predict_async(self, text:
|
|
9810
|
+
def predict_async(self, text: Any, test_titles: list[tuple]= None, label_map: dict=None, rules: list[tuple]=None, callback: Optional[Callable] = None) -> str:
|
|
9811
9811
|
"""
|
|
9812
9812
|
Asynchronous prediction (fire and forget).
|
|
9813
9813
|
|
|
@@ -11144,7 +11144,7 @@ class ConsecutivePeerAgent:
|
|
|
11144
11144
|
'error': str(e)
|
|
11145
11145
|
}
|
|
11146
11146
|
|
|
11147
|
-
async def request_peer_prediction(self, peer_host:
|
|
11147
|
+
async def request_peer_prediction(self, peer_host: Any, peer_port: int, text: Any, timeout: float = 5.0) -> Optional[Dict]:
|
|
11148
11148
|
"""Request prediction from peer - ONLY sends text!"""
|
|
11149
11149
|
|
|
11150
11150
|
peer_key = f"{peer_host}:{peer_port}"
|
|
@@ -11412,7 +11412,7 @@ class ConsecutivePeerAgent:
|
|
|
11412
11412
|
}
|
|
11413
11413
|
|
|
11414
11414
|
|
|
11415
|
-
|
|
11415
|
+
iveAgentDeployment:
|
|
11416
11416
|
"""
|
|
11417
11417
|
Safe deployment wrapper for Async Manager with external peer support.
|
|
11418
11418
|
Handles graceful shutdown, error recovery, and peer connections.
|
{abstractintegratedmodule-0.2.4.dist-info → abstractintegratedmodule-0.2.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AbstractIntegratedModule
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Framework forAdvanced Integrated Non-LLM AI Module library - Backend Framework for Non-LLM AI Agent Framework
|
|
5
5
|
Author: Micro-Novelty
|
|
6
6
|
Author-email: hernikpuspita5@gmail.com
|
|
@@ -40,7 +40,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
|
|
|
40
40
|
#### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
|
|
41
41
|
|
|
42
42
|
### Library Short Description:
|
|
43
|
-
- Development Stage: Beta, 0.2.
|
|
43
|
+
- Development Stage: Beta, 0.2.5.
|
|
44
44
|
- Maintainer: Micro-Novelty.
|
|
45
45
|
- library Source-Code is Open-sourced on github.
|
|
46
46
|
- Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
|
|
@@ -729,6 +729,8 @@ try:
|
|
|
729
729
|
disable_sync=True
|
|
730
730
|
) # await using asyncio, multi_modal_peer_ensemble is already async by design (Inside ConsecutivePeerAgent), no need to put asyncio.run()
|
|
731
731
|
|
|
732
|
+
# must have agent2 peer ensemble function after agent1 peer ensemble prediction function,
|
|
733
|
+
# so agent1 can receive agent2 peer ensemble prediction request.
|
|
732
734
|
result2 = await agent2.multi_modal_peer_ensemble_prediction(
|
|
733
735
|
texts=texts,
|
|
734
736
|
api_key=api_key,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
AbstractIntegratedModule.py,sha256=gf8T5NKvH1VjqbqnpeeXMxLlL8lTadtNhltHN34gEYM,544039
|
|
2
|
+
abstractintegratedmodule-0.2.6.dist-info/METADATA,sha256=nkIRpeMGOsBZNXxPdBdtF4WmeRk3sxo0AYPWofkGbHI,60146
|
|
3
|
+
abstractintegratedmodule-0.2.6.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
abstractintegratedmodule-0.2.6.dist-info/top_level.txt,sha256=H2-a2eP316_DXtZSJz2ztHo8n32qVrJCtyyvuc8m87E,25
|
|
5
|
+
abstractintegratedmodule-0.2.6.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
AbstractIntegratedModule.py,sha256=r6BjaoLIDeU2cL5E7YieSz_U1mA5g9nWfINn_qEv7Z4,544050
|
|
2
|
-
abstractintegratedmodule-0.2.4.dist-info/METADATA,sha256=PgRCtPx2sjX85Q_-c7YwbzqFWz7IKj1i_g_i8c2f2KE,59978
|
|
3
|
-
abstractintegratedmodule-0.2.4.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
-
abstractintegratedmodule-0.2.4.dist-info/top_level.txt,sha256=H2-a2eP316_DXtZSJz2ztHo8n32qVrJCtyyvuc8m87E,25
|
|
5
|
-
abstractintegratedmodule-0.2.4.dist-info/RECORD,,
|
|
File without changes
|
{abstractintegratedmodule-0.2.4.dist-info → abstractintegratedmodule-0.2.6.dist-info}/top_level.txt
RENAMED
|
File without changes
|