aicf-core 0.5.0__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.
- aicf_core-0.5.0.dist-info/METADATA +351 -0
- aicf_core-0.5.0.dist-info/RECORD +164 -0
- aicf_core-0.5.0.dist-info/WHEEL +5 -0
- aicf_core-0.5.0.dist-info/licenses/LICENSE +201 -0
- aicf_core-0.5.0.dist-info/top_level.txt +2 -0
- harness/__init__.py +114 -0
- harness/agent/__init__.py +57 -0
- harness/agent/adapters.py +256 -0
- harness/agent/assembler.py +271 -0
- harness/agent/collab.py +443 -0
- harness/agent/context.py +165 -0
- harness/agent/engine.py +862 -0
- harness/agent/engine_config.py +70 -0
- harness/agent/events.py +90 -0
- harness/agent/loop.py +811 -0
- harness/agent/modes.py +75 -0
- harness/agent/subagent.py +144 -0
- harness/agent/swarm.py +237 -0
- harness/agent_runtime.py +161 -0
- harness/codegraph/__init__.py +30 -0
- harness/codegraph/builder.py +146 -0
- harness/codegraph/imports.py +115 -0
- harness/codegraph/search.py +68 -0
- harness/codegraph/symbol.py +104 -0
- harness/codegraph/watcher.py +91 -0
- harness/context_assembly.py +306 -0
- harness/context_gatherer.py +216 -0
- harness/conversation.py +600 -0
- harness/decisions/__init__.py +85 -0
- harness/decisions/core.py +371 -0
- harness/decisions/service.py +140 -0
- harness/decisions/use_cases.py +443 -0
- harness/filediff.py +202 -0
- harness/groupchat.py +176 -0
- harness/images.py +330 -0
- harness/learning/__init__.py +63 -0
- harness/learning/dataset_builder.py +190 -0
- harness/learning/evaluator.py +252 -0
- harness/learning/probes.py +321 -0
- harness/learning/promotion.py +151 -0
- harness/learning/selfplay.py +590 -0
- harness/learning/teacher.py +306 -0
- harness/memory/__init__.py +17 -0
- harness/memory/base.py +71 -0
- harness/memory/in_memory.py +51 -0
- harness/memory/vector.py +19 -0
- harness/personality/__init__.py +771 -0
- harness/personality/audit.py +136 -0
- harness/personality/character_card.py +301 -0
- harness/personality/distillation_engine.py +481 -0
- harness/personality/dynamic_synthesizer.py +179 -0
- harness/personality/dynamics_engine.py +143 -0
- harness/personality/events.py +201 -0
- harness/personality/evidence_accumulator.py +324 -0
- harness/personality/experience_importer.py +141 -0
- harness/personality/persistence.py +228 -0
- harness/personality/personality_generator.py +324 -0
- harness/personality/personality_judge.py +245 -0
- harness/personality/state_manager.py +306 -0
- harness/personality/traits.py +245 -0
- harness/pipeline/__init__.py +28 -0
- harness/pipeline/base.py +165 -0
- harness/pipeline/events.py +98 -0
- harness/pipeline/filters.py +41 -0
- harness/pipeline/manager.py +152 -0
- harness/pipeline/outputs.py +65 -0
- harness/pipeline/pipeline.py +94 -0
- harness/prompts/__init__.py +5 -0
- harness/prompts/engine.py +195 -0
- harness/sdk.py +298 -0
- harness/skills/__init__.py +61 -0
- harness/skills/agent_bridge.py +81 -0
- harness/skills/base.py +54 -0
- harness/skills/capabilities.py +120 -0
- harness/skills/env_loader.py +98 -0
- harness/skills/loader.py +88 -0
- harness/skills/registry.py +468 -0
- harness/skills/validator.py +296 -0
- harness/skills/yaml_loader.py +234 -0
- harness/skills/yaml_manager.py +296 -0
- harness/tools/__init__.py +25 -0
- harness/tools/base.py +225 -0
- harness/tools/context.py +59 -0
- harness/tools/function_tool.py +93 -0
- harness/tools/mcp.py +549 -0
- harness/tools/registry.py +118 -0
- harness/tools/shell.py +311 -0
- harness/tools/standard.py +778 -0
- harness/tools/toolbox.py +314 -0
- harness/transcript.py +579 -0
- harness/usage.py +143 -0
- infra/__init__.py +13 -0
- infra/auth/__init__.py +21 -0
- infra/auth/api_key.py +101 -0
- infra/auth/base.py +36 -0
- infra/auth/session.py +52 -0
- infra/auth/totp.py +62 -0
- infra/auth/users.py +210 -0
- infra/cache.py +80 -0
- infra/decision/__init__.py +55 -0
- infra/decision/backends.py +93 -0
- infra/decision/client.py +299 -0
- infra/decision/jev.py +256 -0
- infra/finetune/__init__.py +45 -0
- infra/finetune/base.py +196 -0
- infra/finetune/dataset.py +266 -0
- infra/finetune/env.py +256 -0
- infra/finetune/gguf.py +279 -0
- infra/finetune/probe.py +121 -0
- infra/finetune/runner.py +344 -0
- infra/finetune/store.py +205 -0
- infra/finetune/train_sft.py +457 -0
- infra/gateway/__init__.py +7 -0
- infra/gateway/base.py +15 -0
- infra/gateway/flask_adapter.py +27 -0
- infra/models/__init__.py +100 -0
- infra/net.py +301 -0
- infra/observability/__init__.py +15 -0
- infra/observability/core.py +100 -0
- infra/observability/usage.py +94 -0
- infra/orchestrator/__init__.py +129 -0
- infra/orchestrator/anthropic.py +439 -0
- infra/orchestrator/base.py +401 -0
- infra/orchestrator/bonsai.py +236 -0
- infra/orchestrator/dynamic_router.py +394 -0
- infra/orchestrator/failover.py +200 -0
- infra/orchestrator/llamacpp.py +411 -0
- infra/orchestrator/lmstudio.py +317 -0
- infra/orchestrator/local_chat.py +690 -0
- infra/orchestrator/local_engine.py +577 -0
- infra/orchestrator/openai.py +672 -0
- infra/orchestrator/provider.py +64 -0
- infra/orchestrator/router.py +1027 -0
- infra/orchestrator/scheduler.py +761 -0
- infra/orchestrator/strata.py +645 -0
- infra/orchestrator/stub.py +70 -0
- infra/orchestrator/vision.py +385 -0
- infra/policy/__init__.py +32 -0
- infra/policy/budget.py +99 -0
- infra/policy/predictor.py +109 -0
- infra/policy/retry.py +194 -0
- infra/policy/router.py +187 -0
- infra/policy/token_meter.py +166 -0
- infra/policy/warmer.py +92 -0
- infra/resources/__init__.py +51 -0
- infra/resources/decision_service.py +337 -0
- infra/resources/idle.py +177 -0
- infra/resources/launch_modes.py +294 -0
- infra/resources/launchers.py +804 -0
- infra/resources/pool.py +585 -0
- infra/runtime.py +188 -0
- infra/settings.py +127 -0
- infra/store/__init__.py +8 -0
- infra/store/base.py +68 -0
- infra/store/chat_store.py +203 -0
- infra/store/sqlite.py +49 -0
- infra/subapps.py +86 -0
- infra/tasks/__init__.py +18 -0
- infra/tasks/async_store.py +99 -0
- infra/tasks/base.py +104 -0
- infra/tasks/registry.py +102 -0
- infra/tasks/scheduler.py +305 -0
- infra/vector.py +83 -0
- infra/webutil.py +71 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: aicf-core
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: AICF - Agent Infrastructure Cybernetics Framework: a scenario-agnostic agent engine (turn loop, tools, sqlite sessions, sub-agent collaboration)
|
|
5
|
+
Author-email: Jeffery Darkstar <ccjjfdyqlhy@outlook.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/ccjjfdyqlhy/DSN-exp
|
|
8
|
+
Project-URL: Repository, https://github.com/ccjjfdyqlhy/DSN-exp
|
|
9
|
+
Project-URL: Issues, https://github.com/ccjjfdyqlhy/DSN-exp/issues
|
|
10
|
+
Keywords: agent,llm,tools,sessions,subagents,framework
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: openai>=1.0.0
|
|
26
|
+
Requires-Dist: requests>=2.28.0
|
|
27
|
+
Requires-Dist: PyYAML>=6.0
|
|
28
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
29
|
+
Provides-Extra: full
|
|
30
|
+
Requires-Dist: flask>=3.0.0; extra == "full"
|
|
31
|
+
Requires-Dist: fastapi>=0.100; extra == "full"
|
|
32
|
+
Requires-Dist: uvicorn>=0.20; extra == "full"
|
|
33
|
+
Requires-Dist: numpy>=1.24.0; extra == "full"
|
|
34
|
+
Requires-Dist: cryptography>=40.0.0; extra == "full"
|
|
35
|
+
Requires-Dist: rich>=13.0.0; extra == "full"
|
|
36
|
+
Requires-Dist: psutil>=5.9; extra == "full"
|
|
37
|
+
Requires-Dist: opencv-python>=4.8; extra == "full"
|
|
38
|
+
Provides-Extra: mcp
|
|
39
|
+
Requires-Dist: mcp>=1.2.0; extra == "mcp"
|
|
40
|
+
Provides-Extra: anthropic
|
|
41
|
+
Requires-Dist: anthropic>=1.0.0; extra == "anthropic"
|
|
42
|
+
Provides-Extra: socks
|
|
43
|
+
Requires-Dist: httpx[socks]>=0.24; extra == "socks"
|
|
44
|
+
Dynamic: license-file
|
|
45
|
+
|
|
46
|
+
<div align="center">
|
|
47
|
+
<img src="docs/header.svg" width="1200" alt="DSN-exp — Local-First Agent Cybernetics">
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
# DSN-exp
|
|
51
|
+
|
|
52
|
+
> 🧠 **Turn a large language model into your own local agent.**
|
|
53
|
+
> Model routing, tool calling, memory, personality, voice and a web console — one base covers it all.
|
|
54
|
+
|
|
55
|
+
[English](README.md) · [中文](README_zh.md) · [文档](docs/README.md)
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+

|
|
59
|
+

|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
**Framework codename AICF** (Agent Infrastructure Cybernetics Framework) · internal experimental project · Apache-2.0
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 🚀 Start in one command
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
git clone https://github.com/ccjjfdyqlhy/DSN-exp.git && cd DSN-exp && python3 installer.py
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The installer creates a virtualenv, installs dependencies, checks the repo, walks you through connecting a model, and finally starts the web console:
|
|
73
|
+
|
|
74
|
+
**👉 Open <http://127.0.0.1:8888>, then use "Settings → Provider" in the top-right corner to fill in Base URL and API Key — you can chat right away.**
|
|
75
|
+
|
|
76
|
+
> No GPU? Fine. No local model? Fine.
|
|
77
|
+
> No API key yet? You can still start it and look around.
|
|
78
|
+
|
|
79
|
+
Only want the engine as a library? No clone needed:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install aicf-core
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
That gives you `harness` and `infra` — the turn engine, tools, sqlite
|
|
86
|
+
sessions and sub-agent collaboration — importable from any project.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## ✨ What it does for you
|
|
91
|
+
|
|
92
|
+
| You might want… | It's here |
|
|
93
|
+
|---|---|
|
|
94
|
+
| A web console that manages models, runs conversations and shows resource usage | **`dsn_ui`**, the default entry point, port `8888` |
|
|
95
|
+
| A voice companion agent that listens and speaks — see the [old README](https://github.com/ccjjfdyqlhy/DSN-exp/blob/main/README_zh.md) | **`dsn`** |
|
|
96
|
+
| Question banks, mock exams, a knowledge graph, study plans | **`dsn_study`** |
|
|
97
|
+
| A coding assistant in the terminal | **`coding_agent`** |
|
|
98
|
+
| A reusable agent base to build your own apps on | `harness/` + [SDK guide](docs/sdk_guide.md) |
|
|
99
|
+
| Local llama.cpp / LM Studio and remote OpenAI-compatible APIs, mixed freely | `infra/orchestrator` |
|
|
100
|
+
| Repo, models and dependencies installed on demand | `python3 onboarding.py` |
|
|
101
|
+
|
|
102
|
+
**In one line: `infra` manages resources, `harness` does the thinking, `apps` carry the product.**
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 🗺️ The repo in 30 seconds
|
|
107
|
+
|
|
108
|
+
Three layers, dependencies pointing **downward only**:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
apps/ Product voice companion · web console · study assistant · minimal samples
|
|
112
|
+
│ may only use the capabilities below, and adds product semantics
|
|
113
|
+
▼
|
|
114
|
+
harness/ Agent core agent loop · tools · context · pipeline · memory · personality · SDK
|
|
115
|
+
│ only cares about "messages in, events out"; knows nothing about voice/study/companionship
|
|
116
|
+
▼
|
|
117
|
+
infra/ Infra model routing · resource pool · storage · gateway · auth · policy
|
|
118
|
+
knows nothing about any product
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Your daily entry point is the web console `apps/dsn_ui`. To build an app for a new need, read the
|
|
122
|
+
[app development guide](docs/app-development.md) first and follow `apps/dsn_study`
|
|
123
|
+
(the tidiest structure) and `apps/coding_agent` (the smallest readable one).
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
### Installer usage
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
python3 installer.py # full install + guided setup
|
|
131
|
+
python3 installer.py --doctor # check only, change nothing (best for troubleshooting)
|
|
132
|
+
python3 installer.py --non-interactive # no questions, all defaults (CI / containers)
|
|
133
|
+
python3 installer.py --branch main # switch to a branch before installing
|
|
134
|
+
python3 installer.py --reinstall # rebuild .venv and reinstall dependencies
|
|
135
|
+
python3 installer.py --port 8899 # use another port (when 8888 is taken)
|
|
136
|
+
python3 installer.py --host 0.0.0.0 # allow LAN access (binds 127.0.0.1 by default)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### 🧭 Not sure what to install? Let the wizard ask you
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
python3 onboarding.py
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 🎯 What do you want to do next?
|
|
148
|
+
|
|
149
|
+
| I want to… | Start here |
|
|
150
|
+
|---|---|
|
|
151
|
+
| **See what it looks like** | run the installer → open <http://127.0.0.1:8888> |
|
|
152
|
+
| **Configure it automatically** | `python3 onboarding.py` → pick needs/capabilities, it clones repos and downloads models for you |
|
|
153
|
+
| **Chat** | "Settings → Provider" → fill in Base URL + Key |
|
|
154
|
+
| **Run a local model** | prepare a GGUF + `llama-server` → write a profile as in [Model Setup](#model-setup) |
|
|
155
|
+
| **Write a new app** | [App development guide](docs/app-development.md) |
|
|
156
|
+
| **Use AICF as an SDK** | [SDK guide](docs/sdk_guide.md) |
|
|
157
|
+
| **Run the tests / contribute** | [Development and tests](#development-and-tests) |
|
|
158
|
+
| **Troubleshoot the environment** | `python3 installer.py --doctor` → [maintenance guide](docs/maintenance.md) |
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## 🧰 Requirements
|
|
163
|
+
|
|
164
|
+
| Item | Requirement | Notes |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| Python | **3.10+** (tested on 3.12) | many machines have no `python` command, only `python3` |
|
|
167
|
+
| git | recommended | used to switch branches / update |
|
|
168
|
+
| Node.js | **not needed** | only if you change the frontend sources and rebuild (18+) |
|
|
169
|
+
| GPU | not needed | remote APIs need no graphics card at all; only local models do |
|
|
170
|
+
| Disk | ≥ 2GB | dependencies + models |
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## ⚙️ Configuration
|
|
174
|
+
|
|
175
|
+
Configuration comes from three places, **in increasing priority**: environment variables > `.env` > code defaults.
|
|
176
|
+
|
|
177
|
+
### Shortest path: configure nothing
|
|
178
|
+
|
|
179
|
+
`dsn_ui` + `densechat` + `emotion_exp` all run with zero configuration. The `.env` the installer writes is
|
|
180
|
+
entirely comments, waiting for you to fill it in.
|
|
181
|
+
|
|
182
|
+
### Configure in the GUI (recommended)
|
|
183
|
+
|
|
184
|
+
Start the console → "Settings → Provider" in the top-right corner → fill in Base URL and API Key → save.
|
|
185
|
+
**No file editing required.**
|
|
186
|
+
|
|
187
|
+
### Configure `.env` by hand
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
cp .env.example .env
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
`.env.example` has 344 lines and 200+ variables, but **almost all of them have defaults** — ignore them.
|
|
194
|
+
Only four are actually used:
|
|
195
|
+
|
|
196
|
+
```ini
|
|
197
|
+
MAIN_MODEL_TYPE=openai
|
|
198
|
+
MAIN_MODEL_NAME=deepseek-chat
|
|
199
|
+
OPENAI_API_BASE=https://api.deepseek.com/v1
|
|
200
|
+
OPENAI_API_KEY=sk-your-real-key
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
> The full variable list is categorised in [configuration.md](docs/configuration.md).
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Model Setup
|
|
208
|
+
|
|
209
|
+
### Remote API (easiest)
|
|
210
|
+
|
|
211
|
+
Any OpenAI-compatible endpoint works (DeepSeek, OpenAI, GLM, Kimi, vLLM, OneAPI…).
|
|
212
|
+
Just fill in `OPENAI_API_KEY` / `OPENAI_API_BASE` / `MAIN_MODEL_NAME`.
|
|
213
|
+
|
|
214
|
+
### Local llama.cpp
|
|
215
|
+
|
|
216
|
+
You need three things: a compiled `llama-server`, a GGUF weights file, and a model description YAML.
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
cp apps/dsn/model_profiles.example/llama_cpp_local.yaml apps/dsn/model_profiles/
|
|
220
|
+
# edit model_path / binary_path inside
|
|
221
|
+
# restart dsn_ui
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
The template directory `apps/dsn/model_profiles.example/` holds samples you can copy,
|
|
225
|
+
and the field reference lives in that directory's `README.md`.
|
|
226
|
+
|
|
227
|
+
> The repo **does not ship** local models with absolute paths — those paths are only valid on the
|
|
228
|
+
> author's machine, and on any other machine they turn into "listed but always fails to load" ghosts.
|
|
229
|
+
> `python3 installer.py --doctor` catches dead paths before they bite.
|
|
230
|
+
|
|
231
|
+
### LM Studio
|
|
232
|
+
|
|
233
|
+
The console connects to `LMSTUDIO_BASE_URL` automatically at startup (default `http://localhost:4501`).
|
|
234
|
+
The web console can also act as a **pure OpenAI-compatible backend** for external clients
|
|
235
|
+
(Open WebUI / Continue / LangChain) — in that mode it uses `passthrough`: no prompt injection,
|
|
236
|
+
no emotion and no memory. See
|
|
237
|
+
[apps/dsn_ui/INTEGRATION_API.md](apps/dsn_ui/INTEGRATION_API.md).
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## ⌨️ Common commands
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
python3 main.py --list # list every registered app
|
|
245
|
+
python3 main.py --app dsn_ui # start the web console
|
|
246
|
+
python3 main.py --app dsn_study # study assistant (Flask, :5000)
|
|
247
|
+
python3 main.py # default app (the DSN UI web console)
|
|
248
|
+
DSN_APP=dsn_ui python3 main.py # the env var works too
|
|
249
|
+
|
|
250
|
+
python3 -m apps.dsn_ui.server --host 0.0.0.0 --port 8888 --slots 2
|
|
251
|
+
python3 -m apps.densechat # DenseChat WebUI (:8080)
|
|
252
|
+
python3 -m apps.emotion_exp # terminal agent
|
|
253
|
+
|
|
254
|
+
python3 installer.py --doctor # environment check (read-only)
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Ports at a glance
|
|
258
|
+
|
|
259
|
+
| Port | Service |
|
|
260
|
+
|---|---|
|
|
261
|
+
| 8888 | dsn_ui web console |
|
|
262
|
+
| 8080 | densechat |
|
|
263
|
+
| 5000 | dsn / dsn_study |
|
|
264
|
+
| 5050 | dsn debug endpoint (needs `DEBUG_PLAY_AS_MODEL=true`) |
|
|
265
|
+
| 8008 | dsn admin panel (needs `WEB_ADMIN_ENABLED=true`) |
|
|
266
|
+
| 4501 | LM Studio (connected to) |
|
|
267
|
+
|
|
268
|
+
> ⚠️ `dsn_ui` **must run as a single process**: SSE broadcasting and the stream session registry
|
|
269
|
+
> are in-process singletons — running uvicorn with multiple workers breaks reconnection.
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## 🏗️ Architecture at a glance
|
|
274
|
+
|
|
275
|
+
```
|
|
276
|
+
infra/ harness/ apps/
|
|
277
|
+
├─ orchestrator ├─ agent/loop.py ├─ dsn/ voice companion (the largest)
|
|
278
|
+
├─ resources ├─ tools/ (18 std tools) ├─ dsn_ui/ web console (main entry point)
|
|
279
|
+
├─ store ├─ context_assembly.py ├─ dsn_study/ study assistant (the reference app)
|
|
280
|
+
├─ policy ├─ memory/ personality/ ├─ coding_agent/
|
|
281
|
+
├─ gateway ├─ pipeline/ (8 HookPoint) ├─ densechat/
|
|
282
|
+
└─ runtime.py └─ sdk.py └─ emotion_exp/ text_agent/
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
- **Model routing** (`infra/orchestrator`): one contract over llama.cpp / Strata / LM Studio /
|
|
286
|
+
OpenAI / Anthropic backends (`IChatClient` / `IEmbeddingClient`).
|
|
287
|
+
`ModelScheduler` manages VRAM by priority and concurrency slots.
|
|
288
|
+
- **Agent core** (`harness`): multi-step reasoning and tool calls, context trimming under a
|
|
289
|
+
segment budget, vector memory and elastic topic memory, personality dynamics (PEV3),
|
|
290
|
+
pipelines and an event bus, and an embeddable SDK.
|
|
291
|
+
- **Dual-system chat**: some models carry a decision head that answers in one forward pass with
|
|
292
|
+
a calibrated probability. System 2 goes through `POST /v1/chat/completions`, System 1 through
|
|
293
|
+
`POST /v1/decide` (yes/no, choice, score — it returns probabilities), web UI path `/#/decide`.
|
|
294
|
+
|
|
295
|
+
Details in [docs/architecture.md](docs/architecture.md), [docs/harness.md](docs/harness.md) and [docs/infra.md](docs/infra.md).
|
|
296
|
+
|
|
297
|
+
### Applications
|
|
298
|
+
|
|
299
|
+
| App | What it is | Shape |
|
|
300
|
+
|---|---|---|
|
|
301
|
+
| `dsn_ui` | Web console: model management, chat, decisions, resource scheduling | FastAPI + SvelteKit, **main entry point** |
|
|
302
|
+
| `dsn` | Voice companion: real-time audio, emotion system, topic memory | Flask + terminal console, the largest app |
|
|
303
|
+
| `dsn_study` | Study system: question banks, mock exams, knowledge graph | Flask, **the tidiest reference app** |
|
|
304
|
+
| `coding_agent` | Coding assistant sample | terminal REPL |
|
|
305
|
+
| `densechat` | DenseChat WebUI clone | FastAPI |
|
|
306
|
+
| `emotion_exp` | Emotion state machine experiment | terminal |
|
|
307
|
+
| `text_agent` | Minimal placeholder sample | terminal |
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Development and tests
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
pip install -r requirements.txt
|
|
315
|
+
pip install pytest # pytest is not in requirements
|
|
316
|
+
python3 -m pytest -q # full run, about 100 seconds
|
|
317
|
+
python3 -m pytest -m known_broken # the cases waiting to be redone
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
> The repo ships a pytest config: `testpaths` limits collection to `tests/`,
|
|
321
|
+
> so running bare `pytest` at the root never wanders into `temp/`
|
|
322
|
+
> (where the scripts would **really call external APIs during collection**).
|
|
323
|
+
|
|
324
|
+
### External MCP tools
|
|
325
|
+
|
|
326
|
+
`harness/tools/mcp.py` provides the MCP bridge; tools appear as `mcp.<server>.<tool>`,
|
|
327
|
+
with server configuration in `mcp_servers.yaml`.
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## 📚 Documentation
|
|
332
|
+
|
|
333
|
+
| I want to… | Read this |
|
|
334
|
+
|---|---|
|
|
335
|
+
| Build the mental model and learn the module map | [docs/architecture.md](docs/architecture.md) |
|
|
336
|
+
| Go deeper into the agent loop / tools / context | [docs/harness.md](docs/harness.md) |
|
|
337
|
+
| Go deeper into model routing / resource pool / storage | [docs/infra.md](docs/infra.md) |
|
|
338
|
+
| **Run it locally and troubleshoot the environment** | [docs/getting-started.md](docs/getting-started.md) |
|
|
339
|
+
| **Extend an existing app / write a new one** | [docs/app-development.md](docs/app-development.md) |
|
|
340
|
+
| Know what each app does and how to start it | [docs/apps.md](docs/apps.md) |
|
|
341
|
+
| Embed AICF as an SDK in your own project | [docs/sdk_guide.md](docs/sdk_guide.md) |
|
|
342
|
+
| **Know which traps not to step into before changing code** | [docs/maintenance.md](docs/maintenance.md) |
|
|
343
|
+
| Configuration keys / environment variables | [docs/configuration.md](docs/configuration.md) |
|
|
344
|
+
| Run tests and read a failure | [docs/testing.md](docs/testing.md) |
|
|
345
|
+
| **Known tech debt and its fix priority** | [docs/technical-debt.md](docs/technical-debt.md) |
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## 📌 Project status
|
|
350
|
+
|
|
351
|
+
[](https://repostars.dev/?repos=ccjjfdyqlhy%2FDSN-exp&theme=ocean)
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
aicf_core-0.5.0.dist-info/licenses/LICENSE,sha256=crCsD3-0PNfidhe62MrCMzIeaPYKtSM3FXhfWx4lMBg,11346
|
|
2
|
+
harness/__init__.py,sha256=lEGeOQkg0E8Hu-e-ch3MLXR_3tMOGTQYwPMeN6MshKI,3793
|
|
3
|
+
harness/agent_runtime.py,sha256=yr5VdKTEDRjCJaK_4uqwuYJw2evR08EAADxsg0AgcAE,6883
|
|
4
|
+
harness/context_assembly.py,sha256=GNRjXrtdAc_T5mrZGFkrdr5XGVKhwDZkc0jJyYl9msY,14671
|
|
5
|
+
harness/context_gatherer.py,sha256=rDYMOh_0vV5VNG-5W-s8zqNuWqsrOh8bWnml5Dp_f-8,8664
|
|
6
|
+
harness/conversation.py,sha256=mCObBVT4bLlM_pUtPEhkEqkYhc4_vruN7vZrB7vQKQ0,23186
|
|
7
|
+
harness/filediff.py,sha256=sLmNnexj7glP5qqyPODNf9RDJ7pNlrLrxDx1YIxA_EU,7171
|
|
8
|
+
harness/groupchat.py,sha256=4qz9tvBBTsOAwG9AWtNzSbR4EjE83crDZwhf7NatQaM,5907
|
|
9
|
+
harness/images.py,sha256=9brmvHZtK41cdeZV47i6JaC8cNK_9fzbttsQ1-bryrA,11646
|
|
10
|
+
harness/sdk.py,sha256=s3KegTkEacmpJvxB1-snFVHGRs7lHyZdSapGF00VjD0,12176
|
|
11
|
+
harness/transcript.py,sha256=hKwhDZUudvjtxVn3xvHnmgBKysSQLTRBlhrTmCJTmyg,23315
|
|
12
|
+
harness/usage.py,sha256=4i-TTbyAUrH2GzpKRB5yEsPC6Z4rpVC4tGgNAeRi-K4,5313
|
|
13
|
+
harness/agent/__init__.py,sha256=iEf_RX483T2R5xWBFSoPhD1pD64TLEkLUdunR16Aj8g,1595
|
|
14
|
+
harness/agent/adapters.py,sha256=nvnobi3HtKW-nl1uJ-OyzGG60BAJCAbLz8SJPN0CdpI,10792
|
|
15
|
+
harness/agent/assembler.py,sha256=z2YWexhUzggFz0wpflDbujHERw6G6HKEEgDklqHOFH8,12581
|
|
16
|
+
harness/agent/collab.py,sha256=gADDVYqK3CLTP2Shh6qrv8wcbrqw9bpMbJzuO6bxe6w,19123
|
|
17
|
+
harness/agent/context.py,sha256=ThuMu3q7Mkhy4yHTHWZH8JhRpC62D-2Um4XquBpsJbs,5820
|
|
18
|
+
harness/agent/engine.py,sha256=NvA2dwzDXsdan5l3sOThkG7hUIZDmNBLYFocGdO6whg,38373
|
|
19
|
+
harness/agent/engine_config.py,sha256=u1hbGZEjdaj8S_BoOh1XLYB1JUIfZWjrc9HY5qe02xo,1885
|
|
20
|
+
harness/agent/events.py,sha256=utIHFtU1NJuIo5S06Svx0bWLQKQC-9EbkA6xt-tRMj0,2982
|
|
21
|
+
harness/agent/loop.py,sha256=PLOZfWC7Poc27X30CEAmFGKaQzFSdsxFRD7pbTuJ_hw,39595
|
|
22
|
+
harness/agent/modes.py,sha256=Dcr_V1gKn87gSqZnkapUQMimvExngqi3BwBNVwoxPLM,1972
|
|
23
|
+
harness/agent/subagent.py,sha256=MXRBIbeV6dNbWM440bvt1Ubjv4Zkz9aYIma20AxQ4mk,4971
|
|
24
|
+
harness/agent/swarm.py,sha256=FuvA7pWWQrESTWIGRz1K_WPGn4eyxry8cXZvjGLApUg,9220
|
|
25
|
+
harness/codegraph/__init__.py,sha256=gepyoE6vt2d7qkrfQKf9PRW5jq_8HIwtoMepAPF5dW8,732
|
|
26
|
+
harness/codegraph/builder.py,sha256=Ko8e9toamEz6m3hJyuI5pkdvU7hQ8r8zyUtUVfdIc7g,6077
|
|
27
|
+
harness/codegraph/imports.py,sha256=Wubc3RLsrmAZCUhb_5Q3ZuszHSRiUp1cNn68eagd83s,4446
|
|
28
|
+
harness/codegraph/search.py,sha256=ZbDVYafE65a7AY2BqcnvLq-8NuaoAtbv6QhNF2G2Tr0,2300
|
|
29
|
+
harness/codegraph/symbol.py,sha256=jqvh9aST4Syp2r4djxjUFI5Uk-mqnwpbulHzSQ6F1wI,3315
|
|
30
|
+
harness/codegraph/watcher.py,sha256=FC8iUkctY8m_t5P4cWtnjb9c1caI0ewoOWrfZAT2oMs,3419
|
|
31
|
+
harness/decisions/__init__.py,sha256=52xY41bsdQhRz8b4vl1YDVG7TYZcCGXuXPkFjwqhZ5s,2161
|
|
32
|
+
harness/decisions/core.py,sha256=NVWBSzA7Zo2pKm9SFNVb3aAJjEyGtc6Oq_xF8B5-mS4,14067
|
|
33
|
+
harness/decisions/service.py,sha256=RqFzwX8D_DPOrvv6DQ5SmpLErgRhm4j4gA1USsa6oak,4761
|
|
34
|
+
harness/decisions/use_cases.py,sha256=Z4gzl7kKSVY6kWX17EOKVwZh49uCUW0v6CZPlwfGFSo,14748
|
|
35
|
+
harness/learning/__init__.py,sha256=zlD1dufdRNwGMnofUMnA74X4cT9jTm0GXP0S7bmCAoM,1971
|
|
36
|
+
harness/learning/dataset_builder.py,sha256=hf05CfrtLOsUAQAoHIK5zhflTU3znmZKbze4emsNzug,7725
|
|
37
|
+
harness/learning/evaluator.py,sha256=VYfwi0l7SFp5NBN0G-KoYiDsMJxq-QmHhY-2T9T4Sbc,9887
|
|
38
|
+
harness/learning/probes.py,sha256=qJrR5MBEZmDtqxdHg9wVJvY0WsZ2y__cUH-GRG767UU,12197
|
|
39
|
+
harness/learning/promotion.py,sha256=Hdmq8HUTjZrsNw4IcJ9zleEswczs6ybS4gBX91CSiYc,5883
|
|
40
|
+
harness/learning/selfplay.py,sha256=Y5oR-1YPFRwVeUjHvVNRKwjh_SGYpnoi0I9SCmELtyw,25366
|
|
41
|
+
harness/learning/teacher.py,sha256=53htCL7BxPbwy-AhNoD1FedUp6UidY8vjJKQfVfaFnA,12682
|
|
42
|
+
harness/memory/__init__.py,sha256=Y1JQKo-BEb3B6wBAME8DoiEvN7QRtWxC18tVj-I-ZVA,475
|
|
43
|
+
harness/memory/base.py,sha256=pzMAadwyLk4--coNCujn5N9p9x0c3uVd13JL3FD9Wbg,1859
|
|
44
|
+
harness/memory/in_memory.py,sha256=OxWhxyOkW4x9Navme98d0drOi8y2LDtrsxd8lR9P3mQ,1688
|
|
45
|
+
harness/memory/vector.py,sha256=ZojHSXy-hRzWWV20aYBt0lsfNmLWmAly3POK9Ax7cGo,590
|
|
46
|
+
harness/personality/__init__.py,sha256=Y0n7jjcx7IsNUeDqXKcmiJHBHSkxyzrKWC7pTElBRKs,32795
|
|
47
|
+
harness/personality/audit.py,sha256=Qrxes-mWmdTCCBoVMvzx28dKKskuU897Zs4bi4bhlbw,5101
|
|
48
|
+
harness/personality/character_card.py,sha256=utHONaEqg-X3K6NOX3d_KmkI8ENT3_nB6e3m2r7XvM0,10594
|
|
49
|
+
harness/personality/distillation_engine.py,sha256=BsDtF1_LqMfTZMphgcTzU85JZkRO5GhweDYSdiD3k68,21766
|
|
50
|
+
harness/personality/dynamic_synthesizer.py,sha256=v3-ymLanSttKr4M1wkI0qx18e5DWyZTksnfq1Oab_14,6952
|
|
51
|
+
harness/personality/dynamics_engine.py,sha256=3603noW0tWGsG_RKq4tF5HSccWixGWf_-6SUAC6VsJM,5688
|
|
52
|
+
harness/personality/events.py,sha256=iaC4LXIuK-e2OzBAB0lCQVMexTdEM3VeuUxlS7Q-cR0,7582
|
|
53
|
+
harness/personality/evidence_accumulator.py,sha256=iEHLQ_TrWm3rjq4C-vX1pqNXw51MFiWPHqcG4ejbg_o,13677
|
|
54
|
+
harness/personality/experience_importer.py,sha256=u7uebVHulOTIM2tM_xMK4wl-joXsKItF5MWWOQJTcDI,5818
|
|
55
|
+
harness/personality/persistence.py,sha256=Yw7CKCF16BYTbHoWVb-ZqoCSLXsMHsZySVw_BE_sBdU,8414
|
|
56
|
+
harness/personality/personality_generator.py,sha256=qLTW7HvF5Ga0gUhdg_LUW1hKmk3Bk-GK_vrLTg130gY,13900
|
|
57
|
+
harness/personality/personality_judge.py,sha256=5d9CLDNew1iYwkTYVUscKTOleVTBO47xFE7O2VRKNfY,10707
|
|
58
|
+
harness/personality/state_manager.py,sha256=6FdOb82yX5txSAmYaDry--mCgMKMKPRr6bocUaHllig,14079
|
|
59
|
+
harness/personality/traits.py,sha256=FuIfLdWd3i-X-O_HVzvehPJM3668Z9bVyl7oHteZPUM,13524
|
|
60
|
+
harness/pipeline/__init__.py,sha256=T9NdRRz8Tha9ff15OSG4mXR686yGAIW6vLRzA0A0aWc,766
|
|
61
|
+
harness/pipeline/base.py,sha256=cnxlq_VTUvR6UF7rjbEvbtMqWXUuFSbMi_b6hCZaky8,6275
|
|
62
|
+
harness/pipeline/events.py,sha256=ZbkUk5S0fV4P31QSApuMu8xeIyLabwB7apLcHmDfrP4,4621
|
|
63
|
+
harness/pipeline/filters.py,sha256=3jr9zSVtG67pbz5xCrGLlQfU6VfLAVTJCA3H1yNdMo0,1446
|
|
64
|
+
harness/pipeline/manager.py,sha256=kvu6bN28aF_oVwKX0G0iIlHRc8LG5l0ykRx3kmq_jRg,5914
|
|
65
|
+
harness/pipeline/outputs.py,sha256=I1y34_q2sgyzgiw8xDx_tOfPHORKACpa8bf4jurN-aY,2088
|
|
66
|
+
harness/pipeline/pipeline.py,sha256=cvK-AVZ3q6eV04-_s5OihK3nLFKXL6w_tC2RKJxkBx8,3545
|
|
67
|
+
harness/prompts/__init__.py,sha256=wYFvJR1ny-qO2yUHVRniFbOX24_6Rm40DEYAJ7vlWk8,164
|
|
68
|
+
harness/prompts/engine.py,sha256=QmDhWeW93JbWNFNngZMFz4Sa5-hdjcf_EhFQgGBD_q8,7167
|
|
69
|
+
harness/skills/__init__.py,sha256=2H6cOaQpHD6U6K8RiYoEGc6dgN9FD9ecSTzLe9I6bBM,2099
|
|
70
|
+
harness/skills/agent_bridge.py,sha256=pPdLPZVovKdIDihGSVvSUbeUnJzmd5s7On3TNncfhfY,3498
|
|
71
|
+
harness/skills/base.py,sha256=72Pm784pGpWx4daNP6f8k_SGAySCpGc1KcjgibmMkb8,1541
|
|
72
|
+
harness/skills/capabilities.py,sha256=7eMyN24Qzx1Vq4I-KTvOD4wfEKoVx_I1JhQ879JwGG0,4717
|
|
73
|
+
harness/skills/env_loader.py,sha256=iqx_AIDJE8sZYqIZsTiYtEA_O_a1csYqj7OxVORlWnc,3851
|
|
74
|
+
harness/skills/loader.py,sha256=xkaRek6yRWsxvYTV1l1H52SFULaqABp3-Szf-gfXuGE,3272
|
|
75
|
+
harness/skills/registry.py,sha256=xnm2H_otj45RNtWRK0K-nJ44Ui0It5ybr4hbKnsHoQM,20493
|
|
76
|
+
harness/skills/validator.py,sha256=QrbvQtGzIzIN_V5xlqm4DAI6feP5UJyWycPCw8_SKxA,12743
|
|
77
|
+
harness/skills/yaml_loader.py,sha256=viGa9pCXU-MM23Ffksax89WF2k2tjCOmhcVaO83PX9s,8863
|
|
78
|
+
harness/skills/yaml_manager.py,sha256=loXN180-aP0RsTTjo0f3o2z0AjIUFVTC1f9_mG8hUaA,12171
|
|
79
|
+
harness/tools/__init__.py,sha256=9fhZiXBwCtWEjfPB4D1_5i9W9xE_umtYYyZu9us6TlU,1179
|
|
80
|
+
harness/tools/base.py,sha256=6q-QoUGzVANFvuBcKR2weoFqsCxxSWh9Z4qU1fTvArc,8835
|
|
81
|
+
harness/tools/context.py,sha256=QCjRHlfYsThRajI5pzHaGKjiV1-Zoj6cQyPlk0Y7t-E,1688
|
|
82
|
+
harness/tools/function_tool.py,sha256=0UWc5YCPIbpjsylGhL_6MQ8wFolmWdgMr3VGiHjgW90,3045
|
|
83
|
+
harness/tools/mcp.py,sha256=ioe7SjlbsyQfo0PPhTe75oZGGMNiuSTclN4gn4gpXj8,24780
|
|
84
|
+
harness/tools/registry.py,sha256=rAE37F3mHjEtCt6bxrqOmJshIr4d0nc1sUsRf7NNgvM,5216
|
|
85
|
+
harness/tools/shell.py,sha256=I-qTjX2nOQRpC-6UV_37WudI43VtJh1f9BzMkSQFhUA,11589
|
|
86
|
+
harness/tools/standard.py,sha256=Z7rVbSwraiaLvYXBGB1mP-NFsf9XhTVHjUrPFRbki6k,34891
|
|
87
|
+
harness/tools/toolbox.py,sha256=ziX4D-HikNNDdEZqjjxTQXG2v37-epje6B1On_ykJPs,13037
|
|
88
|
+
infra/__init__.py,sha256=NE-XpMKQzK1tvTg-TffdTbKmxhUJJLC0TH0lJwegBec,664
|
|
89
|
+
infra/cache.py,sha256=DY44n9d3sbQw6ZvGFNx28HMts3VdQK1yZxn4HACp4gk,3000
|
|
90
|
+
infra/net.py,sha256=wuJgmg3-0XZVOPGBC8kZZdYq7UD7ufqcfhPQ90FvNLY,9733
|
|
91
|
+
infra/runtime.py,sha256=lnJEQXgpC4IcHbJeuWy7VlzAKAzCMr01piT5NlQchRc,6565
|
|
92
|
+
infra/settings.py,sha256=42stcmnwRP4mM_EgAftRefN_ixOYKLyi8WB_1WZ-H58,4170
|
|
93
|
+
infra/subapps.py,sha256=glJTPp3CgRTYKvPcZERDxw_ZyUpLNHlieq_GRf88kOU,2897
|
|
94
|
+
infra/vector.py,sha256=y2oOr6qFKWf43u_bMkh-fRWHM5cnKbqNe7QOKOyhN9g,3037
|
|
95
|
+
infra/webutil.py,sha256=9yuASiRKTRC4X2S9N4tnUQzCgRZM17eb3KgST-sHiok,3185
|
|
96
|
+
infra/auth/__init__.py,sha256=kGO6cWZ84DohfPnsY0OS81uSUauFJDuvNNE6LfI-tHM,532
|
|
97
|
+
infra/auth/api_key.py,sha256=o_kLqKoYn4u3g1mY0aAMCMmQ1_8vLMGfSyaGW7aV664,3662
|
|
98
|
+
infra/auth/base.py,sha256=efGhEEMO2uFQC_9uuIOCRcy0GnTg-GJe8r0kUYofMgQ,972
|
|
99
|
+
infra/auth/session.py,sha256=yvWdmYUXfowQ-aLYo0BNCkPtoGsJ0KQ8F7SYABnQ2-0,1782
|
|
100
|
+
infra/auth/totp.py,sha256=3rza4UGQQ2Zx8ch2r56fX6kvfMfNvXcSsChhG7ueJYg,2323
|
|
101
|
+
infra/auth/users.py,sha256=2gdFHDW1iRDDA1qzRm6Ul3jZwEXwyCc2Sn1ffqjjpm0,6925
|
|
102
|
+
infra/decision/__init__.py,sha256=mDVf0s2hX_mdKwmZPymr2LeJkOn7bYcBNTKyoYsV-EM,1373
|
|
103
|
+
infra/decision/backends.py,sha256=cO61sJAB2-I0AYQxj3bq1nAdwuq3dCZfvzoMcMlatM0,3567
|
|
104
|
+
infra/decision/client.py,sha256=eWPjG_8ZlwfWE5T2sFGlNHnVKiXOLFpaKSzRYRJs1MQ,11892
|
|
105
|
+
infra/decision/jev.py,sha256=Q8OhARpOCyrw-Ci_4fWfdf-1-IPey_jlzi2oBNKgIl4,9483
|
|
106
|
+
infra/finetune/__init__.py,sha256=CLTU3LLGd3xm4_gAdDP-Qhkp0tRw0Slu2LDa9_3nAg0,1368
|
|
107
|
+
infra/finetune/base.py,sha256=v6HmvSrxWvAxvFZuSvulNKhn1_U9l_Ecp7e5M11UbzU,7914
|
|
108
|
+
infra/finetune/dataset.py,sha256=AUtSgq0yqCn_YpbK1NmGg0MwQDv6wUDalEexweCkA70,10328
|
|
109
|
+
infra/finetune/env.py,sha256=K74Ti9TRNY-mny84zZH1G29LLNnaQoPP95vXi1wL9mQ,9936
|
|
110
|
+
infra/finetune/gguf.py,sha256=oozzfKW82dMOM7jv4xMsY5V88XSjzUvY9dQ1VktvcPU,10011
|
|
111
|
+
infra/finetune/probe.py,sha256=V4fV0nCfP5ItnOJLFvswioVmDV7pAfW9lIF799q2y0E,4618
|
|
112
|
+
infra/finetune/runner.py,sha256=yHxrbzL8ii4eaPrTlqwnua6daxT9JYn947pQn3BWTVM,14541
|
|
113
|
+
infra/finetune/store.py,sha256=eb4id5LBEN6PS0wGkFwtRgRI06FS4zsfr3JEdCaSsyk,7741
|
|
114
|
+
infra/finetune/train_sft.py,sha256=kTO9skAAJz3LIj2WtQtFhDF8A1wUZ0jy3lwmeF3y9Uw,19115
|
|
115
|
+
infra/gateway/__init__.py,sha256=acKSNXfXg5-_EF023LA1Fdthj-YLzG7Hs-DHyt-tcJ8,217
|
|
116
|
+
infra/gateway/base.py,sha256=6RGUWGAY7JE2gkEijVeBlf9P-R7zwBR7IJEWUF094y0,376
|
|
117
|
+
infra/gateway/flask_adapter.py,sha256=_c1YnP3lFlwC0XuwKcqhgi_KtZ0AfKyILEhjbvhCnkU,728
|
|
118
|
+
infra/models/__init__.py,sha256=WV8RUyANG62OdXritZCuC_qgId6SsoDVQjPO_xwSqb8,3511
|
|
119
|
+
infra/observability/__init__.py,sha256=UhI1UNgvggqnJmJfOAK-gB06JOkOCK_u2wIjgHtF3Lg,382
|
|
120
|
+
infra/observability/core.py,sha256=3IH0QMuYUX-WwOVj0EfZ_tGpfUziBqk7DcJyLT279ik,3091
|
|
121
|
+
infra/observability/usage.py,sha256=54--uUw8D6f3exQq_q0y9a98lX9w6Go7IZO6Sid1t2M,3413
|
|
122
|
+
infra/orchestrator/__init__.py,sha256=HXAbfo57dZAVKGd4h0k_Fdf7wUPpk9G5mZTmC2sDN74,3376
|
|
123
|
+
infra/orchestrator/anthropic.py,sha256=w_MP3JUGaM8dJ4mXUmcQMsbF3WIB7fOdQL_eWrpZcOE,18690
|
|
124
|
+
infra/orchestrator/base.py,sha256=fFl2mld7u-3kUK1mJbpO-sPJ3S6-8jJ2HHs1yYZa9Pc,15215
|
|
125
|
+
infra/orchestrator/bonsai.py,sha256=nVVmA-qhYKI_IZCh3bXeaPCxWYzI3Hg2UBTutHxmkCY,8641
|
|
126
|
+
infra/orchestrator/dynamic_router.py,sha256=GmUN3GNtrJItsakxlYY5XIju7ZOvp7kFUTfjdAWiAac,14366
|
|
127
|
+
infra/orchestrator/failover.py,sha256=nSNpgU4wyrOW0WlS8hURmT3J2g8T9KG7K6oH_PMEQLc,8146
|
|
128
|
+
infra/orchestrator/llamacpp.py,sha256=o8RmkTje_M6vWUrj-dqV8SDGXf8oieCgvMtlDt0kYoc,17042
|
|
129
|
+
infra/orchestrator/lmstudio.py,sha256=FcgvE8oR015p6jLoeRg5FLLYrVmeL55gvZVpued7yOU,12417
|
|
130
|
+
infra/orchestrator/local_chat.py,sha256=dOfv5Lc3Jbj6GSAORg-771Jt_9uiO6F2cWasyH3XQjM,29386
|
|
131
|
+
infra/orchestrator/local_engine.py,sha256=LXUiPK3DmCk_N4e5a3I9WzuAPr3JD3t7rV-k6l3RGOY,25798
|
|
132
|
+
infra/orchestrator/openai.py,sha256=vPPxUdJzlKPDuV1ylj5lynCWCFxLIjlmJmeSz6KJ5P0,31709
|
|
133
|
+
infra/orchestrator/provider.py,sha256=DFegnu-Q6ttncW2EkFDNVviQpdSek_sRBeqYTp8q6LY,2809
|
|
134
|
+
infra/orchestrator/router.py,sha256=ZCEDL5FxvGVUAOTGqLSsBgLiFClAyeByFS95FtC3YMI,43280
|
|
135
|
+
infra/orchestrator/scheduler.py,sha256=WE_LAYXN3uEysuxSDrkLNTsvqD8hdcTNDjyO7KAwyBA,32590
|
|
136
|
+
infra/orchestrator/strata.py,sha256=AhBDAzt3Ji9wDxlky9z2tVmr1NldQqv0IsWhj1RtPJk,26836
|
|
137
|
+
infra/orchestrator/stub.py,sha256=4-WAT6AKnkWtEauxond9-8v2UKUH7HWO_r8PKm6FJF0,2382
|
|
138
|
+
infra/orchestrator/vision.py,sha256=OnZ4zrWVcyflP0dJdzCYNaZP-2ocAWOdRo4vQqRmnbQ,15435
|
|
139
|
+
infra/policy/__init__.py,sha256=tn8J2iR4HDc40QRQXJdYqzBFFR52s3MWYu2KJfWCf1s,1451
|
|
140
|
+
infra/policy/budget.py,sha256=-DJ-gejWlP4CkxnRId11c4tZU4c306MQG8oWk8BTX_0,3428
|
|
141
|
+
infra/policy/predictor.py,sha256=EzoupaYOdV8AbQizieLGr0yy7umgxWMAxcbeZKR8EZ8,4233
|
|
142
|
+
infra/policy/retry.py,sha256=4Vwyiqj3uZUOEPsY_KotJHVuOz35_jYFzPB-1woW97M,7697
|
|
143
|
+
infra/policy/router.py,sha256=txWNWilG55DCPqjU5vNoYtlScN_wWdeAG1knL5LMWPY,7421
|
|
144
|
+
infra/policy/token_meter.py,sha256=Z0jXZwtaTK85KDw1NIZR3xAldCLO0ZPEVDZiZ1qkDzM,5615
|
|
145
|
+
infra/policy/warmer.py,sha256=J0KXHCoKjeRDMJLT2LmqA-Uq8w0Uvhn9DoG1fT54F1s,3050
|
|
146
|
+
infra/resources/__init__.py,sha256=Sx7eBD9xCD35wqMZVvCtd3I5yZmKwtg9GFjGfYcFi7g,1717
|
|
147
|
+
infra/resources/decision_service.py,sha256=ELCFoXtT9Q42vzzgUhnO5HOJlsyfvpW5VjmSJXL4-x8,12648
|
|
148
|
+
infra/resources/idle.py,sha256=U6e7TwOgyaWKluQiF0yA7oVl4J-oHjPGUstLaHmxtN0,6805
|
|
149
|
+
infra/resources/launch_modes.py,sha256=ItCLRQi_107rN9uuxBqtvMsN85Dt_34_vxm3bLpICCY,11617
|
|
150
|
+
infra/resources/launchers.py,sha256=hJ5x6S7I88XyyuIvaZt8s-oabODXfMM20aO7BzRT82s,32203
|
|
151
|
+
infra/resources/pool.py,sha256=V6S6hyutFYAgeAAa9ku6BZm0mOEnu6phN1dWMpt9bqA,24758
|
|
152
|
+
infra/store/__init__.py,sha256=DXl1lWyvxk50csjCh3emxmlF0n_RrcAd27gWsTNhCBw,321
|
|
153
|
+
infra/store/base.py,sha256=Or2u_zq1I7n2Q-weNnyze2_D6wINEkEvF8EoRmfVRBs,2110
|
|
154
|
+
infra/store/chat_store.py,sha256=ZLld-RrD8woMXdYSoGWk6wS27RgkdzXcCRIGrsieDVA,8345
|
|
155
|
+
infra/store/sqlite.py,sha256=lBMAoeK5QkjFr2iVYVI5LIXb_rmNYx-CR7wEnpGn7Wk,1765
|
|
156
|
+
infra/tasks/__init__.py,sha256=me-deVKffWn6nG3Nu_vYos8Gs4EfDi9IMhmLlc8TQOs,480
|
|
157
|
+
infra/tasks/async_store.py,sha256=Q2PR1l0P83KRug-2e1xEasKIftYjSUtAwJV5ZfbT-5k,3468
|
|
158
|
+
infra/tasks/base.py,sha256=IvHu3sv4L7K59L_oBjcQoDD_mnuU6NDIqj5VyUNM2hM,3081
|
|
159
|
+
infra/tasks/registry.py,sha256=A5NMATQ2DcOtXjBWNdlsxdo4hEfS16tEc304vVMlRRo,3842
|
|
160
|
+
infra/tasks/scheduler.py,sha256=8NEQ1dMm60xJZNj27YbQpFtOrbVzrQKvetdHTbaLkQk,12084
|
|
161
|
+
aicf_core-0.5.0.dist-info/METADATA,sha256=MGQDgTXebMfnGVOXNER3Fipj-dGw7yJxuMD23RrkrEc,14853
|
|
162
|
+
aicf_core-0.5.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
163
|
+
aicf_core-0.5.0.dist-info/top_level.txt,sha256=IhC-IezXGFvgFc-zXLBwtUwRet3NttjLtImBJZ2wy1Q,14
|
|
164
|
+
aicf_core-0.5.0.dist-info/RECORD,,
|