isagellm-core 0.1.0__cp311-none-any.whl → 0.1.0.2__cp311-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.
- {isagellm_core-0.1.0.dist-info → isagellm_core-0.1.0.2.dist-info}/METADATA +43 -3
- isagellm_core-0.1.0.2.dist-info/RECORD +32 -0
- {isagellm_core-0.1.0.dist-info → isagellm_core-0.1.0.2.dist-info}/WHEEL +1 -1
- sagellm_core/__init__.py +3 -6
- sagellm_core/__init__.pyc +0 -0
- sagellm_core/__main__.pyc +0 -0
- sagellm_core/__pycache__/__init__.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/config.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/demo.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/engine.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/factory.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/health.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/mock_engine.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/plugins.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/runner.cpython-311.pyc +0 -0
- sagellm_core/__pycache__/workload.cpython-311.pyc +0 -0
- sagellm_core/config.pyc +0 -0
- sagellm_core/demo.pyc +0 -0
- sagellm_core/engine.pyc +0 -0
- sagellm_core/engines/__init__.py +2 -10
- sagellm_core/engines/__init__.pyc +0 -0
- sagellm_core/engines/__pycache__/__init__.cpython-311.pyc +0 -0
- sagellm_core/engines/__pycache__/mock.cpython-311.pyc +0 -0
- sagellm_core/engines/mock.pyc +0 -0
- sagellm_core/factory.pyc +0 -0
- sagellm_core/health.pyc +0 -0
- sagellm_core/mock_engine.pyc +0 -0
- sagellm_core/plugins.pyc +0 -0
- sagellm_core/runner.pyc +0 -0
- sagellm_core/workload.pyc +0 -0
- isagellm_core-0.1.0.dist-info/RECORD +0 -31
- isagellm_core-0.1.0.dist-info/entry_points.txt +0 -2
- {isagellm_core-0.1.0.dist-info → isagellm_core-0.1.0.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: isagellm-core
|
|
3
|
-
Version: 0.1.0
|
|
3
|
+
Version: 0.1.0.2
|
|
4
4
|
Summary: sageLLM core runtime (config/observability/registries), plugin-ready
|
|
5
5
|
Author: IntelliStream Team
|
|
6
6
|
License: Proprietary - IntelliStream
|
|
@@ -26,6 +26,12 @@ Requires-Dist: pre-commit>=3.0.0; extra == "dev"
|
|
|
26
26
|
|
|
27
27
|
# sagellm-core
|
|
28
28
|
|
|
29
|
+
[](https://github.com/intellistream/sagellm-core/actions/workflows/ci.yml)
|
|
30
|
+
[](https://pypi.org/project/isagellm-core/)
|
|
31
|
+
[](https://pypi.org/project/isagellm-core/)
|
|
32
|
+
[](https://github.com/intellistream/sagellm-core/blob/main/LICENSE)
|
|
33
|
+
[](https://github.com/astral-sh/ruff)
|
|
34
|
+
|
|
29
35
|
core 只依赖协议与抽象,不直接 import 硬件 SDK。
|
|
30
36
|
|
|
31
37
|
- 仓库名:`sagellm-core`
|
|
@@ -44,6 +50,41 @@ sagellm-core 位于 **Level 2**,依赖:
|
|
|
44
50
|
- 插件发现机制(plugins.py)
|
|
45
51
|
- 工厂函数(factory.py)
|
|
46
52
|
|
|
53
|
+
## 安装
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# 从 PyPI 安装(自动安装 protocol + backend 依赖)
|
|
57
|
+
pip install isagellm-core
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 🚀 开发者快速开始
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git clone git@github.com:intellistream/sagellm-core.git
|
|
64
|
+
cd sagellm-core
|
|
65
|
+
./quickstart.sh # 一键安装开发环境(含依赖)
|
|
66
|
+
|
|
67
|
+
# 或手动安装
|
|
68
|
+
pip install -e ".[dev]"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
运行测试:
|
|
72
|
+
```bash
|
|
73
|
+
pytest tests/ -v
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
运行 Demo(Mock 模式):
|
|
77
|
+
```bash
|
|
78
|
+
python -m sagellm_core.demo --mock --segments short
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
> 💡 **提示**:`isagellm-protocol` 和 `isagellm-backend` 会自动从 PyPI 安装。
|
|
82
|
+
> 如需本地联调:
|
|
83
|
+
> ```bash
|
|
84
|
+
> pip install -e ../sagellm-protocol
|
|
85
|
+
> pip install -e ../sagellm-backend
|
|
86
|
+
> ```
|
|
87
|
+
|
|
47
88
|
## 插件发现(entry points)
|
|
48
89
|
|
|
49
90
|
- backends:`sagellm.backends`(由 sagellm-backend 提供基础实现)
|
|
@@ -323,4 +364,3 @@ Level 3: 功能模块(依赖 protocol + backend + core)
|
|
|
323
364
|
↓
|
|
324
365
|
Level 4: isagellm-demo (依赖所有模块)
|
|
325
366
|
```
|
|
326
|
-
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
sagellm_core/__init__.py,sha256=LpmwcJlxM8ykr8CiVjF1P3KfjQnX-DlWC0z6cBdFbII,1318
|
|
2
|
+
sagellm_core/__init__.pyc,sha256=Udt8y0HGtcHO-8ELYg_qX-FmAlhiJe__5RCursK7wCE,1462
|
|
3
|
+
sagellm_core/__main__.pyc,sha256=4wEXHFB0JVZaI6wLACU59_b-LfEbujTQZyzONaalAYA,384
|
|
4
|
+
sagellm_core/config.pyc,sha256=8gGOOBcHRSSv883bDIJNXzB069ntBc0yYEf-PFAeWdU,9617
|
|
5
|
+
sagellm_core/demo.pyc,sha256=MAeTgokTW8kW906wjvTLN1yNLfOOl3_hokpVzJ-Lt4I,6377
|
|
6
|
+
sagellm_core/engine.pyc,sha256=8Et-gI0pYOpDPRCz8IrWMDYKWs_-K31jAAnYoe-HnF8,584
|
|
7
|
+
sagellm_core/factory.pyc,sha256=PF-xQQn-fYn25GO5muzf9rCdHKQ3NhQYiCKOnkHBjxY,2692
|
|
8
|
+
sagellm_core/health.pyc,sha256=oEWyaaTix4YXhyu8JSYOQAy9KBySxbIcHt2hNpchi-w,684
|
|
9
|
+
sagellm_core/mock_engine.pyc,sha256=iadJef1bNdQXdXJLFo_FE9aVglecothXLhxMoMtzEv0,532
|
|
10
|
+
sagellm_core/plugins.pyc,sha256=rhdewQ_zJxnmRFBjUozBlhQtIwFg0C1rFD8zMT7ZeKI,2618
|
|
11
|
+
sagellm_core/py.typed,sha256=ixa8YukDZ3kLo0WsFJRGohLMyHzbMur1ALmmASML2cs,64
|
|
12
|
+
sagellm_core/runner.pyc,sha256=kUPITl68dX1rOY5Fg5o6KRBMjMhMAQFNizEuRF44PgM,14248
|
|
13
|
+
sagellm_core/workload.pyc,sha256=LDuZAdimFAd3pHn8E9WG7LjwU_1IKABZ-gaMCMjOTus,4118
|
|
14
|
+
sagellm_core/__pycache__/__init__.cpython-311.pyc,sha256=R2nIc2MOizHOtAi3qteyJyfWIPxXbBQgZtp2jvYiJhg,1492
|
|
15
|
+
sagellm_core/__pycache__/config.cpython-311.pyc,sha256=4c_gjzVmxIRApzmUq8LCboOG3wPqmmwWVFxZS3JOHOg,9647
|
|
16
|
+
sagellm_core/__pycache__/demo.cpython-311.pyc,sha256=yOMGCRRQigl8sclMTcg-iHThQoxrRTPWSUdgDYJ3hgU,6407
|
|
17
|
+
sagellm_core/__pycache__/engine.cpython-311.pyc,sha256=6wUoB2Rz8YqoVpefE28b_vqxAozdXFiCYJZ_gn5Vi9A,614
|
|
18
|
+
sagellm_core/__pycache__/factory.cpython-311.pyc,sha256=Dl6w_PHlzEVr62cT6D11_gm9F-MAcqouBNNHZEHCjqw,2722
|
|
19
|
+
sagellm_core/__pycache__/health.cpython-311.pyc,sha256=t8l6F_O808YWsFBDQfdJU6_Ps8H-nnE6k0fdLxYwLJk,714
|
|
20
|
+
sagellm_core/__pycache__/mock_engine.cpython-311.pyc,sha256=KcHBGI1dVIEKm7rhZOkPWQ27rzNVEhmXDYsiQ_5Lfe8,562
|
|
21
|
+
sagellm_core/__pycache__/plugins.cpython-311.pyc,sha256=K6-SC0yOVvT-qVh7Fp2GC-O0GloaWY00W9_8y_jrBnk,2648
|
|
22
|
+
sagellm_core/__pycache__/runner.cpython-311.pyc,sha256=aZCGktjzcGBqNB7tJahEHfUgbTOYPCn-TyKp6yzpD6s,14278
|
|
23
|
+
sagellm_core/__pycache__/workload.cpython-311.pyc,sha256=ah0QMR3-t_EdjS6km5zi64LLn0FB3XgN7ALa1rVlDYY,4148
|
|
24
|
+
sagellm_core/engines/__init__.py,sha256=Pz_6hPpdL9aZqFSZnP_3Hdo_oOhMgygp8fYDUq60eoM,99
|
|
25
|
+
sagellm_core/engines/__init__.pyc,sha256=F8_ZNvo0w79MF136pvCmRArLhPjae6uGsds7v9OUAEo,331
|
|
26
|
+
sagellm_core/engines/mock.pyc,sha256=D0kWj50DsPdaZAM_2W-vyTW11ofNsSF02knRGtfKEJA,586
|
|
27
|
+
sagellm_core/engines/__pycache__/__init__.cpython-311.pyc,sha256=Y36wU_L1T0NqaGBb-oqt38qVk38lunfTWTv5n-TkCLI,361
|
|
28
|
+
sagellm_core/engines/__pycache__/mock.cpython-311.pyc,sha256=bt1MKmriqKcL_HF2gvQQ5JfxI-ij24G4fZvgFXjBAmM,616
|
|
29
|
+
isagellm_core-0.1.0.2.dist-info/METADATA,sha256=nSW2I1mm63Y-KwzgrnbQmzglGjtRR3NcIHzehUZGj1w,9949
|
|
30
|
+
isagellm_core-0.1.0.2.dist-info/WHEEL,sha256=ZJeWpR6hcCRGwxVKXlDk-HsGwijNyTq4fszaDj4Ycyo,93
|
|
31
|
+
isagellm_core-0.1.0.2.dist-info/top_level.txt,sha256=wcgdWrvkaoYYh_dWSFI5Toi8PZsHutVqfhTB2tb0K6g,13
|
|
32
|
+
isagellm_core-0.1.0.2.dist-info/RECORD,,
|
sagellm_core/__init__.py
CHANGED
|
@@ -21,13 +21,13 @@ from sagellm_core.config import (
|
|
|
21
21
|
load_config,
|
|
22
22
|
)
|
|
23
23
|
from sagellm_core.demo import main as demo_main
|
|
24
|
-
from sagellm_core.engine import BaseEngine
|
|
25
|
-
from sagellm_core.engines.mock import MockEngine, create_mock_engine
|
|
24
|
+
from sagellm_core.engine import BaseEngine
|
|
26
25
|
from sagellm_core.factory import create_backend, create_engine
|
|
26
|
+
from sagellm_core.health import HealthStatus
|
|
27
27
|
from sagellm_core.plugins import PluginResolutionError, list_entry_points, resolve_kind
|
|
28
28
|
from sagellm_core.runner import DemoRunner, RunnerContext
|
|
29
29
|
|
|
30
|
-
__version__ = "0.1.0"
|
|
30
|
+
__version__ = "0.1.0.2"
|
|
31
31
|
|
|
32
32
|
__all__ = [
|
|
33
33
|
# Version
|
|
@@ -44,9 +44,6 @@ __all__ = [
|
|
|
44
44
|
# Engine abstraction
|
|
45
45
|
"BaseEngine",
|
|
46
46
|
"HealthStatus",
|
|
47
|
-
# Engine implementations
|
|
48
|
-
"MockEngine",
|
|
49
|
-
"create_mock_engine",
|
|
50
47
|
# Factory functions
|
|
51
48
|
"create_backend",
|
|
52
49
|
"create_engine",
|
sagellm_core/__init__.pyc
CHANGED
|
Binary file
|
sagellm_core/__main__.pyc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
sagellm_core/config.pyc
CHANGED
|
Binary file
|
sagellm_core/demo.pyc
CHANGED
|
Binary file
|
sagellm_core/engine.pyc
CHANGED
|
Binary file
|
sagellm_core/engines/__init__.py
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
"""Engine implementations
|
|
2
|
-
|
|
3
|
-
包含各种引擎实现(mock, adapters 等)。
|
|
4
|
-
"""
|
|
1
|
+
"""Engine implementations package."""
|
|
5
2
|
|
|
6
3
|
from __future__ import annotations
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
__all__ = [
|
|
11
|
-
"MockEngine",
|
|
12
|
-
"create_mock_engine",
|
|
13
|
-
]
|
|
5
|
+
__all__: list[str] = []
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
sagellm_core/engines/mock.pyc
CHANGED
|
Binary file
|
sagellm_core/factory.pyc
CHANGED
|
Binary file
|
sagellm_core/health.pyc
ADDED
|
Binary file
|
sagellm_core/mock_engine.pyc
CHANGED
|
Binary file
|
sagellm_core/plugins.pyc
CHANGED
|
Binary file
|
sagellm_core/runner.pyc
CHANGED
|
Binary file
|
sagellm_core/workload.pyc
CHANGED
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
sagellm_core/__init__.py,sha256=MWpaRuB3qnlJMWGEg-WRgcIilMTO8KYzuenfc95Gy2o,1427
|
|
2
|
-
sagellm_core/__init__.pyc,sha256=UmPe4uUGaK75yWKog9QSNWBRUoYvNN21iMTzucPznzM,1538
|
|
3
|
-
sagellm_core/__main__.pyc,sha256=48Ej1ycqV-z87qawGOTNBKNgY3EcbffUOOXrDecOR3g,384
|
|
4
|
-
sagellm_core/config.pyc,sha256=Reg92lld5VRC8FcV3qahAXaWmwar5RYfQMLysPw5UFQ,9617
|
|
5
|
-
sagellm_core/demo.pyc,sha256=hI3RKeIGhmoKt7N30r5QWJh07qrmf49cZlXjp48phz4,5728
|
|
6
|
-
sagellm_core/engine.pyc,sha256=4HFROkpRES11m5dQyOjyYRA0RbJFlYO2Dl7A5dMu9_w,3598
|
|
7
|
-
sagellm_core/factory.pyc,sha256=uLXID49VZ7TcNZqgLBbznInCXjwbRSXSpD0bc6WHDVs,2692
|
|
8
|
-
sagellm_core/mock_engine.pyc,sha256=wTAEID7SVpZGeMiujX98CumNksp4T78AfKIWeuCb2jI,532
|
|
9
|
-
sagellm_core/plugins.pyc,sha256=RwUFT48AJhKqah3q7YOigOYwqvnei6RNMqpZksX5VJ0,2618
|
|
10
|
-
sagellm_core/py.typed,sha256=ixa8YukDZ3kLo0WsFJRGohLMyHzbMur1ALmmASML2cs,64
|
|
11
|
-
sagellm_core/runner.pyc,sha256=1E0hkYDYxQFSXUrTxALP7kvwX8Z1-jsRfyzWumC2cKE,14479
|
|
12
|
-
sagellm_core/workload.pyc,sha256=92TRxjcnKLzAbcVZgOTPzwdR9dU1hqjO2j-olr1QCQ8,4118
|
|
13
|
-
sagellm_core/__pycache__/__init__.cpython-311.pyc,sha256=vEYsS7efRG35E0lrTNCLokWRUGaE8DINcT2LRqabs_s,1582
|
|
14
|
-
sagellm_core/__pycache__/config.cpython-311.pyc,sha256=bFTIjHE0DP304V_cvsFREkedx1b9TB4UTVDwExUvqXo,9661
|
|
15
|
-
sagellm_core/__pycache__/demo.cpython-311.pyc,sha256=dG2EDA_mTwWRgOWujyDXJvDAInQZWuNgJOBTMxtkxQc,5772
|
|
16
|
-
sagellm_core/__pycache__/engine.cpython-311.pyc,sha256=TCUxrAN856WYtEzi4D1tXNjgj177Cx6d2yp2LMMcC7I,3647
|
|
17
|
-
sagellm_core/__pycache__/factory.cpython-311.pyc,sha256=d3up_zYRL1q12mGYvBE_f6HpzaWlerXV_RZ9ys4VZtQ,2736
|
|
18
|
-
sagellm_core/__pycache__/mock_engine.cpython-311.pyc,sha256=zCHNncwIzEgqZ0lc7kiWkS-zOHf7CQ73UhCXztR6mFM,581
|
|
19
|
-
sagellm_core/__pycache__/plugins.cpython-311.pyc,sha256=__NNjLfUJXa1DqwdgVBJAkLp-nN2rcA5SXM0_Jd9MPU,2662
|
|
20
|
-
sagellm_core/__pycache__/runner.cpython-311.pyc,sha256=dCWo6RBDeeQFj3Igh0A6P6LKUH7r3w9sStqXChypXRo,14523
|
|
21
|
-
sagellm_core/__pycache__/workload.cpython-311.pyc,sha256=kOSkfzgj2-GozzyuTfTE7NST2_HblneakPUuj9MLP48,4162
|
|
22
|
-
sagellm_core/engines/__init__.py,sha256=X_zrzK96ZTwcqWJD6GcdZ_9cynsJnpN11KtV_GQTG4c,248
|
|
23
|
-
sagellm_core/engines/__init__.pyc,sha256=wvPx_2E1evtbKxyF7d1xdoK5l-XVLh7_vkFlKkf8KtI,458
|
|
24
|
-
sagellm_core/engines/mock.pyc,sha256=7V2PgGvtuEsAU8sW5D9ZEIj0NpcqnTy2ezSDQw_C_Q4,7917
|
|
25
|
-
sagellm_core/engines/__pycache__/__init__.cpython-311.pyc,sha256=5EYPxOv12AZEhUSw_v65GgVskdxzcJLcfdhJ5B05BHw,502
|
|
26
|
-
sagellm_core/engines/__pycache__/mock.cpython-311.pyc,sha256=YpY2M-rXF_vMg0GeWfPnrqo06KL-gHrbBAF-1nh3wUQ,7961
|
|
27
|
-
isagellm_core-0.1.0.dist-info/METADATA,sha256=5LT4nsoDr8tF4SriE5hBLtA9SigJSxuaQxwYDhSNIO0,8631
|
|
28
|
-
isagellm_core-0.1.0.dist-info/WHEEL,sha256=27snaH8EChr9VGIQt_981R5IOTPR-vQPuJNW-WzhNJA,93
|
|
29
|
-
isagellm_core-0.1.0.dist-info/entry_points.txt,sha256=dvRi6CIfghSFY6qmzpfG6nLg9yeQicW6lFBTNmdgEB8,70
|
|
30
|
-
isagellm_core-0.1.0.dist-info/top_level.txt,sha256=wcgdWrvkaoYYh_dWSFI5Toi8PZsHutVqfhTB2tb0K6g,13
|
|
31
|
-
isagellm_core-0.1.0.dist-info/RECORD,,
|
|
File without changes
|