Feat: Export Agent Logs. (#13658)

### What problem does this PR solve?
Feat: Export Agent Logs.

### Type of change


- [x] New Feature (non-breaking change which adds functionality)

---------

Co-authored-by: balibabu <assassin_cike@163.com>
This commit is contained in:
balibabu
2026-03-17 18:51:26 +08:00
committed by GitHub
parent fc4f1e2488
commit 6cae364ac2
13 changed files with 199 additions and 24 deletions

View File

@ -688,6 +688,8 @@ async def set_session(canvas_id):
session_id=get_uuid()
canvas = Canvas(cvs.dsl, tenant_id, canvas_id, canvas_id=cvs.id)
canvas.reset()
# Get the version title for this canvas (using latest, not necessarily released)
version_title = UserCanvasVersionService.get_latest_version_title(cvs.id, release_mode=False)
conv = {
"id": session_id,
"name": req.get("name", ""),
@ -697,7 +699,8 @@ async def set_session(canvas_id):
"message": [],
"source": "agent",
"dsl": cvs.dsl,
"reference": []
"reference": [],
"version_title": version_title
}
API4ConversationService.save(**conv)
return get_json_result(data=conv)