amsdal_ml 0.1.2__tar.gz → 0.1.3__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.
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.github/workflows/ci.yml +5 -5
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.github/workflows/release.yml +7 -7
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.github/workflows/tag_check.yml +1 -1
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/PKG-INFO +1 -1
- amsdal_ml-0.1.3/amsdal_ml/__about__.py +1 -0
- amsdal_ml-0.1.3/amsdal_ml/app.py +8 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/mcp_client/stdio_client.py +2 -1
- amsdal_ml-0.1.3/change-logs.md +24 -0
- amsdal_ml-0.1.3/latest-changelogs.md +6 -0
- amsdal_ml-0.1.2/amsdal_ml/__about__.py +0 -1
- amsdal_ml-0.1.2/amsdal_ml/app.py +0 -24
- amsdal_ml-0.1.2/change-logs.md +0 -11
- amsdal_ml-0.1.2/latest-changelogs.md +0 -5
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.amsdal/.dependencies +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.amsdal/.environment +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.amsdal/.secrets +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.amsdal-cli +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/.gitignore +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/README.md +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/Third-Party Materials - AMSDAL Dependencies - License Notices.md +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/agents/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/agents/agent.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/agents/default_qa_agent.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/agents/promts/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/agents/promts/react_chat.prompt +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/agents/retriever_tool.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/fileio/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/fileio/base_loader.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/fileio/openai_loader.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/mcp_client/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/mcp_client/base.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/mcp_client/http_client.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/mcp_server/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/mcp_server/server_retriever_stdio.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/migrations/0000_initial.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_config.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_ingesting/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_ingesting/default_ingesting.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_ingesting/embedding_data.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_ingesting/ingesting.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_ingesting/openai_ingesting.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_models/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_models/models.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_models/openai_model.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_retrievers/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_retrievers/default_retriever.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_retrievers/openai_retriever.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/ml_retrievers/retriever.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/models/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/models/embedding_model.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/amsdal_ml/py.typed +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/config.yml +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/license_check.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/pyproject.toml +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/scripts/release.sh +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/scripts/tag_check.sh +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/agents_tests/__init__.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/agents_tests/test_arun.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/agents_tests/test_astream.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/agents_tests/test_astream_final_only.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/agents_tests/test_fakes.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/agents_tests/test_tool_call_arguments_async.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/conftest.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/tests/test_openai_model.py +0 -0
- {amsdal_ml-0.1.2 → amsdal_ml-0.1.3}/uv.lock +0 -0
|
@@ -11,10 +11,10 @@ jobs:
|
|
|
11
11
|
- name: Reset permissions
|
|
12
12
|
run: |
|
|
13
13
|
sudo chown -R $(id -u):$(id -g) .
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@v5
|
|
15
15
|
|
|
16
16
|
- name: Python install
|
|
17
|
-
uses: actions/setup-python@
|
|
17
|
+
uses: actions/setup-python@v6
|
|
18
18
|
with:
|
|
19
19
|
python-version: "3.11"
|
|
20
20
|
- name: License check
|
|
@@ -36,19 +36,19 @@ jobs:
|
|
|
36
36
|
DEPS: yes
|
|
37
37
|
_TYPER_FORCE_DISABLE_TERMINAL: true
|
|
38
38
|
steps:
|
|
39
|
-
- uses: actions/checkout@
|
|
39
|
+
- uses: actions/checkout@v5
|
|
40
40
|
- uses: szenius/set-timezone@v2.0
|
|
41
41
|
with:
|
|
42
42
|
timezoneLinux: "EEST"
|
|
43
43
|
|
|
44
44
|
- name: Set up python
|
|
45
|
-
uses: actions/setup-python@
|
|
45
|
+
uses: actions/setup-python@v6
|
|
46
46
|
with:
|
|
47
47
|
python-version: ${{ matrix.python-version }}
|
|
48
48
|
|
|
49
49
|
- name: Hatch and UV setup
|
|
50
50
|
run: |
|
|
51
|
-
pip install --upgrade uv hatch
|
|
51
|
+
pip install --upgrade uv hatch==1.14.2
|
|
52
52
|
hatch env prune
|
|
53
53
|
hatch env create
|
|
54
54
|
hatch run sync
|
|
@@ -10,10 +10,10 @@ jobs:
|
|
|
10
10
|
name: License check
|
|
11
11
|
runs-on: self-hosted
|
|
12
12
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
13
|
+
- uses: actions/checkout@v5
|
|
14
14
|
|
|
15
15
|
- name: Python install
|
|
16
|
-
uses: actions/setup-python@
|
|
16
|
+
uses: actions/setup-python@v6
|
|
17
17
|
with:
|
|
18
18
|
python-version: "3.11"
|
|
19
19
|
- name: License check
|
|
@@ -34,17 +34,17 @@ jobs:
|
|
|
34
34
|
DEPS: yes
|
|
35
35
|
|
|
36
36
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
37
|
+
- uses: actions/checkout@v5
|
|
38
38
|
|
|
39
39
|
- name: Set up python
|
|
40
|
-
uses: actions/setup-python@
|
|
40
|
+
uses: actions/setup-python@v6
|
|
41
41
|
with:
|
|
42
42
|
python-version: ${{ matrix.python-version }}
|
|
43
43
|
|
|
44
44
|
- name: Install hatch
|
|
45
45
|
run: |
|
|
46
46
|
python -m pip install --upgrade setuptools
|
|
47
|
-
python -m pip install
|
|
47
|
+
python -m pip install hatch==1.14.2
|
|
48
48
|
|
|
49
49
|
- name: Build
|
|
50
50
|
run: hatch build
|
|
@@ -65,7 +65,7 @@ jobs:
|
|
|
65
65
|
python-version: [ "3.10" ]
|
|
66
66
|
steps:
|
|
67
67
|
- name: Set up python
|
|
68
|
-
uses: actions/setup-python@
|
|
68
|
+
uses: actions/setup-python@v6
|
|
69
69
|
with:
|
|
70
70
|
python-version: ${{ matrix.python-version }}
|
|
71
71
|
|
|
@@ -83,7 +83,7 @@ jobs:
|
|
|
83
83
|
- name: Install hatch
|
|
84
84
|
run: |
|
|
85
85
|
python -m pip install --upgrade setuptools
|
|
86
|
-
python -m pip install
|
|
86
|
+
python -m pip install hatch==1.14.2
|
|
87
87
|
|
|
88
88
|
- name: Publish
|
|
89
89
|
run: |
|
|
@@ -13,7 +13,7 @@ jobs:
|
|
|
13
13
|
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && startsWith(github.event.pull_request.head.ref, 'release/')
|
|
14
14
|
runs-on: self-hosted
|
|
15
15
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@v5
|
|
17
17
|
with:
|
|
18
18
|
token: ${{ secrets.ACCESS_KEY }}
|
|
19
19
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.1.3'
|
|
@@ -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()
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## [v0.1.3](https://pypi.org/project/amsdal_ml/0.1.3/) - 2025-10-13
|
|
2
|
+
|
|
3
|
+
### Pass env vars into stdio server
|
|
4
|
+
|
|
5
|
+
- Pass env vars into stdio server
|
|
6
|
+
- cleanup of app.py
|
|
7
|
+
|
|
8
|
+
## [v0.1.2](https://pypi.org/project/amsdal_ml/0.1.2/) - 2025-10-08
|
|
9
|
+
|
|
10
|
+
### Changed object_id in EmbeddingModel
|
|
11
|
+
|
|
12
|
+
- Fix for UserWarning: Field name "object_id" in "EmbeddingModel" shadows an attribute in parent "Model"
|
|
13
|
+
|
|
14
|
+
## [v0.1.1](https://pypi.org/project/amsdal_ml/0.1.1/) - 2025-10-08
|
|
15
|
+
|
|
16
|
+
### Interface of BaseFileLoader & OpenAI-based PDF file loader
|
|
17
|
+
|
|
18
|
+
- BaseFileLoader interface and OpenAI Files API implementation
|
|
19
|
+
|
|
20
|
+
## [v0.1.0](https://pypi.org/project/amsdal_ml/0.1.0/) - 2025-09-22
|
|
21
|
+
|
|
22
|
+
### Core * OpenAI-based implementations
|
|
23
|
+
|
|
24
|
+
- Interfaces and default OpenAI-based implementations
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.1.2'
|
amsdal_ml-0.1.2/amsdal_ml/app.py
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from typing import TYPE_CHECKING
|
|
4
|
-
|
|
5
|
-
# During type checking, point to the known-available fallback.
|
|
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):
|
|
17
|
-
name = "amsdal_ml"
|
|
18
|
-
verbose_name = "AMSDAL ML Plugin"
|
|
19
|
-
|
|
20
|
-
def on_ready(self) -> None:
|
|
21
|
-
pass
|
|
22
|
-
|
|
23
|
-
def on_server_startup(self) -> None:
|
|
24
|
-
pass
|
amsdal_ml-0.1.2/change-logs.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
## [v0.1.1](https://pypi.org/project/amsdal_ml/0.1.1/) - 2025-10-08
|
|
2
|
-
|
|
3
|
-
### Interface of BaseFileLoader & OpenAI-based PDF file loader
|
|
4
|
-
|
|
5
|
-
- BaseFileLoader interface and OpenAI Files API implementation
|
|
6
|
-
|
|
7
|
-
## [v0.1.0](https://pypi.org/project/amsdal_ml/0.1.0/) - 2025-09-22
|
|
8
|
-
|
|
9
|
-
### Core * OpenAI-based implementations
|
|
10
|
-
|
|
11
|
-
- Interfaces and default OpenAI-based implementations
|
|
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
|
|
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
|