fix(decision-logs): remove unused context_json + json import (ruff F841/F401)
All checks were successful
CI / test (push) Successful in 3m57s
All checks were successful
CI / test (push) Successful in 3m57s
This commit is contained in:
parent
4bcab065f1
commit
3376caca7b
@ -3,7 +3,6 @@
|
|||||||
Pulled out of ``web/routers/intelligent_evals.py`` so the router only handles
|
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.
|
HTTP validation and error translation. The ORM writes and reads now live here.
|
||||||
"""
|
"""
|
||||||
import json
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from sqlmodel import Session, select
|
from sqlmodel import Session, select
|
||||||
@ -45,8 +44,6 @@ def create_decision_log(
|
|||||||
if eval_db is None:
|
if eval_db is None:
|
||||||
raise LookupError(f"intelligent eval {eval_id} not found")
|
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.
|
# Dedupe: same (eval, decision_type, context) → return existing.
|
||||||
for existing in session.exec(
|
for existing in session.exec(
|
||||||
select(IntelligentEvalDecisionLogDB).where(
|
select(IntelligentEvalDecisionLogDB).where(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user