From 3376caca7b724695bd2cd987664196854722a197 Mon Sep 17 00:00:00 2001 From: sinohqb Date: Fri, 14 Aug 2026 15:23:36 +0800 Subject: [PATCH] fix(decision-logs): remove unused context_json + json import (ruff F841/F401) --- backend/agenteval/intelligent_eval/decision_logs.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/agenteval/intelligent_eval/decision_logs.py b/backend/agenteval/intelligent_eval/decision_logs.py index bb3744a..2d40b79 100644 --- a/backend/agenteval/intelligent_eval/decision_logs.py +++ b/backend/agenteval/intelligent_eval/decision_logs.py @@ -3,7 +3,6 @@ Pulled out of ``web/routers/intelligent_evals.py`` so the router only handles HTTP validation and error translation. The ORM writes and reads now live here. """ -import json from typing import Any from sqlmodel import Session, select @@ -45,8 +44,6 @@ def create_decision_log( if eval_db is None: raise LookupError(f"intelligent eval {eval_id} not found") - context_json = json.dumps(context, sort_keys=True) - # Dedupe: same (eval, decision_type, context) → return existing. for existing in session.exec( select(IntelligentEvalDecisionLogDB).where(