amsdal_ml 0.1.2__py3-none-any.whl → 0.1.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.
- amsdal_ml/__about__.py +1 -1
- amsdal_ml/app.py +3 -19
- amsdal_ml/mcp_client/stdio_client.py +2 -1
- {amsdal_ml-0.1.2.dist-info → amsdal_ml-0.1.3.dist-info}/METADATA +1 -1
- {amsdal_ml-0.1.2.dist-info → amsdal_ml-0.1.3.dist-info}/RECORD +6 -6
- {amsdal_ml-0.1.2.dist-info → amsdal_ml-0.1.3.dist-info}/WHEEL +0 -0
amsdal_ml/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.1.
|
|
1
|
+
__version__ = '0.1.3'
|
amsdal_ml/app.py
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
from
|
|
1
|
+
from amsdal.contrib.app_config import AppConfig
|
|
2
2
|
|
|
3
|
-
from typing import TYPE_CHECKING
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
if TYPE_CHECKING:
|
|
7
|
-
from amsdal.contrib.app_config import AppConfig as BaseAppConfig
|
|
8
|
-
else:
|
|
9
|
-
try:
|
|
10
|
-
# At runtime prefer the real AMSDAL core if present.
|
|
11
|
-
from amsdal.configs.app import AppConfig as BaseAppConfig # type: ignore[import-not-found]
|
|
12
|
-
except Exception: # pragma: no cover
|
|
13
|
-
from amsdal.contrib.app_config import AppConfig as BaseAppConfig
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class MLPluginAppConfig(BaseAppConfig):
|
|
4
|
+
class MLPluginAppConfig(AppConfig):
|
|
17
5
|
name = "amsdal_ml"
|
|
18
6
|
verbose_name = "AMSDAL ML Plugin"
|
|
19
7
|
|
|
20
|
-
def on_ready(self) -> None:
|
|
21
|
-
pass
|
|
22
|
-
|
|
23
|
-
def on_server_startup(self) -> None:
|
|
24
|
-
pass
|
|
8
|
+
def on_ready(self) -> None: ...
|
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
4
|
import base64
|
|
5
|
+
import os
|
|
5
6
|
from collections.abc import Iterable
|
|
6
7
|
from contextlib import AsyncExitStack
|
|
7
8
|
from typing import Any
|
|
@@ -47,7 +48,7 @@ class StdioClient(ToolClient):
|
|
|
47
48
|
|
|
48
49
|
async def _open_session(self) -> tuple[AsyncExitStack, ClientSession]:
|
|
49
50
|
stack = AsyncExitStack()
|
|
50
|
-
params = StdioServerParameters(command=self._command, args=self._args)
|
|
51
|
+
params = StdioServerParameters(command=self._command, args=self._args, env=os.environ.copy())
|
|
51
52
|
rx, tx = await stack.enter_async_context(stdio_client(params))
|
|
52
53
|
s = await stack.enter_async_context(ClientSession(rx, tx))
|
|
53
54
|
await s.initialize()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
amsdal_ml/Third-Party Materials - AMSDAL Dependencies - License Notices.md,sha256=0A3jjw91I-NaTHXCw8IQiKUdFJgVavhgHaFX4Nag4jk,81658
|
|
2
|
-
amsdal_ml/__about__.py,sha256=
|
|
2
|
+
amsdal_ml/__about__.py,sha256=uZsygMXMKRw-7qhWojAjnpm8GFPXU92xW6XA8O5GwFY,22
|
|
3
3
|
amsdal_ml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
amsdal_ml/app.py,sha256=
|
|
4
|
+
amsdal_ml/app.py,sha256=K_lUz37_FUQmPwzDakDhVXA_D2SL9z1JtcuHfuBvlKE,184
|
|
5
5
|
amsdal_ml/ml_config.py,sha256=UONMVG2RbKVbaYF-GdlhRQbm8flp52GxBzfqdzuLZ5w,1788
|
|
6
6
|
amsdal_ml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
amsdal_ml/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -16,7 +16,7 @@ amsdal_ml/fileio/openai_loader.py,sha256=4YyxK5pBAnRm55et5yMu6X5OdK2kWTqpuPF1E2-
|
|
|
16
16
|
amsdal_ml/mcp_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
amsdal_ml/mcp_client/base.py,sha256=cNuHHCSSND4BkIyhQZ-1mJLPp630wTCtiCQSHnK2zmA,441
|
|
18
18
|
amsdal_ml/mcp_client/http_client.py,sha256=2fFCaubp_cFeyCqN9CP7bVLTp4UIIEhJPq9BVHBf6-w,1719
|
|
19
|
-
amsdal_ml/mcp_client/stdio_client.py,sha256=
|
|
19
|
+
amsdal_ml/mcp_client/stdio_client.py,sha256=F5Y2yGFNDCE7Nfg_6QMCkp81Vb4uS2UQ1XnD_FTGM8U,5777
|
|
20
20
|
amsdal_ml/mcp_server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
amsdal_ml/mcp_server/server_retriever_stdio.py,sha256=iUQNwWEDZE0OIS9vyTyJp_EOn4kvl9Gn0Okzcq-ymo0,1762
|
|
22
22
|
amsdal_ml/migrations/0000_initial.py,sha256=UeEtqHrCgmTQyGnyV2jC7yt9Ce7Xm0-MyhOQU3rRrs8,1633
|
|
@@ -34,6 +34,6 @@ amsdal_ml/ml_retrievers/openai_retriever.py,sha256=oY71oPJdFuECWaJL_ByKZFE7HRJ-S
|
|
|
34
34
|
amsdal_ml/ml_retrievers/retriever.py,sha256=zHvaAOAD6H4IaIaYA_wy2e8tMmGtOnyNsDS2B4dQjBU,1005
|
|
35
35
|
amsdal_ml/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
amsdal_ml/models/embedding_model.py,sha256=mdMSYHrkSIKHi5mg4HqMaTTiPGqLYtRdRkbEK_trFWw,774
|
|
37
|
-
amsdal_ml-0.1.
|
|
38
|
-
amsdal_ml-0.1.
|
|
39
|
-
amsdal_ml-0.1.
|
|
37
|
+
amsdal_ml-0.1.3.dist-info/METADATA,sha256=BETzPNugrsUz-RL3yG-2I-4I_WBSLkJ5oRJYxyZxEDY,1676
|
|
38
|
+
amsdal_ml-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
39
|
+
amsdal_ml-0.1.3.dist-info/RECORD,,
|
|
File without changes
|