Add telemetry to keep state of new agents being used

This commit is contained in:
sabaimran
2024-03-28 11:37:24 +05:30
parent 46ebc55e2b
commit 51d0c9b8b0

View File

@@ -178,10 +178,15 @@ async def create_chat_session(
response = {"conversation_id": conversation.id}
conversation_metadata = {
"agent": agent_slug,
}
update_telemetry_state(
request=request,
telemetry_type="api",
api="create_chat_sessions",
metadata=conversation_metadata,
**common.__dict__,
)