feat:增加分析进度接口

This commit is contained in:
2026-10-10 07:26:24 -07:00
parent e3699d1a30
commit cd5a2b4d8f
15 changed files with 632 additions and 143 deletions
+2
View File
@@ -10,6 +10,7 @@ from loguru import logger
from app.agent.data_tools import DataContext
from app.config import settings
from app.core.exceptions import BizException
from app.datafiles.insights import ready_insights
from app.datafiles.service import DataFileService
from app.observability.tracing import astream_screen
from app.processor.history import trim_history
@@ -75,6 +76,7 @@ class AgentService:
name=record.name,
attached_this_turn=record.file_id in attached,
tables=record.tables,
insights=ready_insights(record.insights),
).model_dump(mode="json")
for record in records
]