Add operator user agent and video recorder

This commit is contained in:
2026-07-01 00:44:10 +08:00
parent dcd6f7fd41
commit 1d43efd5b4
9 changed files with 502 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
from app.agents.evaluation_agent import evaluate_project
from app.agents.user_agent import run_user_agent
from app.agents.validation_agent import validate_project
@@ -15,6 +16,8 @@ def test_evaluation_agent_returns_checks():
assert checks["separated_pages_ui"] is True
assert checks["trained_model_inference_ui"] is True
assert checks["dataset_preparation_doc"] is True
assert checks["user_agent_api"] is True
assert checks["user_agent_ui"] is True
def test_validation_agent_lightweight(monkeypatch):
@@ -23,3 +26,17 @@ def test_validation_agent_lightweight(monkeypatch):
assert result["agent"] == "validation_agent"
assert result["passed"] is True
assert any(item["name"] == "catalog_has_yolo_heatmap" for item in result["checks"])
def test_user_agent_runs_synthetic_open_data_flow():
result = run_user_agent()
assert result["agent"] == "user_agent"
assert result["passed"] is True
checks = {item["name"]: item["passed"] for item in result["checks"]}
assert checks["synthetic_open_dataset_created"] is True
assert checks["image_mask_pairs_ready"] is True
assert checks["yolo_labels_ready"] is True
assert checks["dataset_yaml_generated"] is True
assert checks["job_runner_used"] is True
assert checks["result_artifacts_visible"] is True
assert checks["training_curve_visible"] is True