feat:增加分析进度接口
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user