feat: unify history tools and improve execution reliability
This commit is contained in:
1 parent
d23a4f6472
commit
2fea9865ee
116 files changed
+8291
-2503
No files matched your search
@@ -176,6 +176,15 @@ async def get_session_details(session_id: str):
|
||||
return dict(row)
|
||||
|
||||
|
||||
@router.get("/api/sessions/{session_id}/usage")
|
||||
async def get_session_usage(session_id: str):
|
||||
"""Session-wide LLM token totals, live executor context size and run tuning."""
|
||||
try:
|
||||
return await asyncio.to_thread(session_repo.get_session_usage, session_id)
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@router.get("/api/sessions/{session_id}/tree")
|
||||
async def get_tree(session_id: str):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user