Files
life-echo/api/app/features/evaluation/admin_service.py
Kevin 064ad2161d refactor(eval+memoir):精简内部评测路由与服务,composite/对话摘要与 judge 能力补强
- 访谈:新增 interview_state_hints,联动 orchestrator 与提示词
- 回忆录:story_pipeline_sync/state/memory/post_commit 与 Celery 任务调整
- 基建:开发用 celery broker、compose/development 脚本、依赖注入
- eval-web:移除数据集/实验/版本等页面与流式轮询,突出 Playground
- 文档与单测同步
2026-04-08 21:36:12 +08:00

25 lines
756 B
Python

"""内部评测:仅保留 Playground fixtures 列表等轻量能力。"""
from __future__ import annotations
from sqlalchemy.ext.asyncio import AsyncSession
from app.features.evaluation.user_export_fixtures import (
list_user_export_fixture_names as list_user_export_md_filenames,
)
from app.features.evaluation.user_export_fixtures import (
read_user_export_fixture,
)
class EvaluationAdminService:
def __init__(self, db: AsyncSession) -> None:
self._db = db
def list_user_export_fixture_names(self) -> list[str]:
return list_user_export_md_filenames()
def load_user_export_fixture_turns(self, filename: str) -> list[tuple[str, str]]:
turns, _ = read_user_export_fixture(filename)
return turns