agent-devkit 0.3.0 → 0.3.2
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.
- package/README.md +25 -11
- package/package.json +1 -1
- package/runtime/README.md +20 -10
- package/runtime/cli/README.md +14 -6
- package/runtime/cli/aikit/__init__.py +1 -1
- package/runtime/cli/aikit/aliases.py +181 -0
- package/runtime/cli/aikit/app_home.py +1 -0
- package/runtime/cli/aikit/cli_dispatch.py +5 -1
- package/runtime/cli/aikit/cli_parser.py +3 -2
- package/runtime/cli/aikit/embedded_mini_brain.py +351 -0
- package/runtime/cli/aikit/human_output.py +32 -0
- package/runtime/cli/aikit/interactive_wizard.py +181 -13
- package/runtime/cli/aikit/llm.py +28 -2
- package/runtime/cli/aikit/local_llm.py +19 -4
- package/runtime/cli/aikit/local_llm_operator.py +15 -5
- package/runtime/cli/aikit/mini_brain.py +56 -44
- package/runtime/cli/aikit/model_router.py +42 -9
- package/runtime/cli/aikit/natural_prompt_runtime.py +86 -2
- package/runtime/cli/aikit/onboarding.py +3 -3
- package/runtime/cli/aikit/personality.py +3 -0
- package/runtime/cli/aikit/review_gate.py +14 -2
- package/runtime/models/qwen2.5-0.5b-instruct/manifest.json +30 -0
- package/runtime/scripts/release-catalog-snapshot.json +1 -1
|
@@ -24,13 +24,13 @@ def build_review_gate(
|
|
|
24
24
|
if route:
|
|
25
25
|
required = True
|
|
26
26
|
reasons.append("deterministic-route")
|
|
27
|
-
if model_plan and (model_plan
|
|
27
|
+
if model_plan and local_worker_review_required(model_plan):
|
|
28
28
|
required = True
|
|
29
29
|
reasons.append("local-llm")
|
|
30
30
|
if model_plan and model_plan.get("strategy") == "human":
|
|
31
31
|
required = True
|
|
32
32
|
reasons.append("human-strategy")
|
|
33
|
-
if model_plan and model_plan
|
|
33
|
+
if model_plan and mini_brain_review_required(model_plan):
|
|
34
34
|
required = True
|
|
35
35
|
reasons.append("mini-brain")
|
|
36
36
|
if model_plan and model_plan.get("risk") == "high":
|
|
@@ -50,6 +50,18 @@ def build_review_gate(
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
|
|
53
|
+
def local_worker_review_required(model_plan: dict[str, Any]) -> bool:
|
|
54
|
+
if not (model_plan.get("local_llm_selected") or model_plan.get("local_llm_recommended")):
|
|
55
|
+
return False
|
|
56
|
+
return model_plan.get("local_llm_provider") == "ollama" or model_plan.get("risk") != "low"
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def mini_brain_review_required(model_plan: dict[str, Any]) -> bool:
|
|
60
|
+
if model_plan.get("strategy") != "mini-brain":
|
|
61
|
+
return False
|
|
62
|
+
return model_plan.get("risk") != "low" or model_plan.get("local_llm_provider") == "ollama"
|
|
63
|
+
|
|
64
|
+
|
|
53
65
|
def mark_reviewed(payload: dict[str, Any], *, reviewer: str | None = None, notes: str | None = None) -> dict[str, Any]:
|
|
54
66
|
gate = dict(payload)
|
|
55
67
|
if gate.get("required"):
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "agent-devkit.embedded-model/v1",
|
|
3
|
+
"model_id": "Qwen/Qwen2.5-0.5B-Instruct",
|
|
4
|
+
"model_name": "qwen2.5-0.5b-instruct",
|
|
5
|
+
"artifact": {
|
|
6
|
+
"filename": "qwen2.5-0.5b-instruct-q2_k.gguf",
|
|
7
|
+
"format": "gguf",
|
|
8
|
+
"quantization": "q2_k",
|
|
9
|
+
"size_bytes": 415182688,
|
|
10
|
+
"sha256": "9ee36184e616dfc76df4f5dd66f908dbde6979524ae36e6cefb67f532f798cb8",
|
|
11
|
+
"source": "https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct-GGUF/resolve/main/qwen2.5-0.5b-instruct-q2_k.gguf"
|
|
12
|
+
},
|
|
13
|
+
"provider": "embedded-mini-brain",
|
|
14
|
+
"license": "apache-2.0",
|
|
15
|
+
"runtime": "llama-cpp-python",
|
|
16
|
+
"purpose": [
|
|
17
|
+
"setup_help",
|
|
18
|
+
"wizard_conversation",
|
|
19
|
+
"intent_classification",
|
|
20
|
+
"command_explanation",
|
|
21
|
+
"short_error_summary"
|
|
22
|
+
],
|
|
23
|
+
"guardrails": [
|
|
24
|
+
"no_secrets",
|
|
25
|
+
"low_risk_only",
|
|
26
|
+
"no_external_writes",
|
|
27
|
+
"coordinator_review_required"
|
|
28
|
+
],
|
|
29
|
+
"notes": "This manifest declares the embedded mini-brain artifact downloaded on demand into .agent-devkit/models. Ollama remains an optional local worker pool for additional models."
|
|
30
|
+
}
|