agent-apprenticeship 0.1.7 → 0.1.9
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/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agent-apprenticeship"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.9"
|
|
8
8
|
description = "Open framework for turning real agent work into transferable agent experience"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""Agent Apprenticeship framework."""
|
|
2
|
-
__version__ = "0.1.
|
|
2
|
+
__version__ = "0.1.9"
|
|
@@ -24,6 +24,7 @@ from .config import (
|
|
|
24
24
|
from .env import redact_secrets
|
|
25
25
|
from .io import append_jsonl, read_json, read_jsonl, write_json
|
|
26
26
|
from .public_sanitizer import sanitize_public_obj
|
|
27
|
+
from .version import get_package_version
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
def utc_now() -> str:
|
|
@@ -236,7 +237,7 @@ def ecosystem_item_from_bundle(
|
|
|
236
237
|
str(metadata.get("economic_value_summary") or manifest.get("economic_value_summary") or "").strip()
|
|
237
238
|
or f"{expected_value.title()} reuse value based on trace evidence, artifact coverage, and generated training rows."
|
|
238
239
|
)
|
|
239
|
-
package_version = str(manifest.get("package_version") or manifest.get("agent_apprenticeship_version") or
|
|
240
|
+
package_version = str(manifest.get("package_version") or manifest.get("agent_apprenticeship_version") or get_package_version())
|
|
240
241
|
loop_count = int(loop_manifest.get("loop_iteration_count") or manifest.get("loop_iteration_count") or 0)
|
|
241
242
|
has_skill = (compiler_dir / "skill_pack").exists()
|
|
242
243
|
has_training = (compiler_dir / "training_time_package").exists()
|
|
@@ -1307,7 +1307,7 @@ def _environment_spec(evidence: dict[str, Any]) -> dict[str, Any]:
|
|
|
1307
1307
|
"dependencies": values_from("cross_system_dependencies"),
|
|
1308
1308
|
"system_of_record": (values_from("system_of_record") or [None])[0],
|
|
1309
1309
|
},
|
|
1310
|
-
"evidence_status": ["No simulated environment response is generated
|
|
1310
|
+
"evidence_status": ["No simulated environment response is generated."],
|
|
1311
1311
|
})
|
|
1312
1312
|
|
|
1313
1313
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from importlib import metadata
|
|
4
|
+
|
|
5
|
+
from . import __version__
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def get_package_version() -> str:
|
|
9
|
+
"""Return the installed Agent Apprenticeship package version."""
|
|
10
|
+
if __version__:
|
|
11
|
+
return __version__
|
|
12
|
+
try:
|
|
13
|
+
return metadata.version("agent-apprenticeship")
|
|
14
|
+
except metadata.PackageNotFoundError:
|
|
15
|
+
return __version__
|