feat: improve agent workflow observability

This commit is contained in:
2026-06-14 14:46:24 +08:00
parent c293cb5e3b
commit 3f75c966c2
7 changed files with 187 additions and 11 deletions
@@ -582,6 +582,9 @@ class AgentService:
'type': 'complete',
'elapsed_time': elapsed_time,
'tokens_used': total_tokens,
'total_tokens': total_tokens,
'conversation_id': str(conversation.id),
'message_id': str(assistant_msg.id),
}
except Exception as e: