o
    i                     @   sr   d dl mZ d dlmZ d dlmZ ddlmZmZm	Z	 G dd dej
ZG dd	 d	ej
ZG d
d dej
ZdS )    )serializers)SeniorSerializer)CallSerializer   )ConversationMemoryConversationInsightc                   @   sD   e Zd ZdZedddZeddZe	 Z
e	 ZG dd dZdS )	ConversationSerializerz!Serializer for Conversation modelzcall.seniorT)source	read_onlyr   c                   @       e Zd ZeZg dZg dZdS )zConversationSerializer.Meta)idcallsenior
transcriptsummarytopics_discussedkey_memoriesemotions_detectedsentiment_scoreengagement_levelfollow_up_topicsfollow_up_questionsdurationis_meaningful
created_at
updated_atr   r   r   N)__name__
__module____qualname__r   modelfieldsread_only_fields r%   r%   2/var/www/html/philips/conversations/serializers.pyMeta   s    r'   N)r   r    r!   __doc__r   r   r   r   r   ReadOnlyFieldr   r   r'   r%   r%   r%   r&   r	      s    
r	   c                   @   (   e Zd ZdZeddZG dd dZdS )MemorySerializerzSerializer for Memory modelTr   c                   @   r   )zMemorySerializer.Meta)r   r   conversationmemory_typetitlecontentimportance_scoretagstimes_referencedlast_referencedr   r   )r   r2   r3   r   r   N)r   r    r!   r   r"   r#   r$   r%   r%   r%   r&   r'       s    r'   Nr   r    r!   r(   r   r   r'   r%   r%   r%   r&   r+          
r+   c                   @   r*   )ConversationInsightSerializerz(Serializer for ConversationInsight modelTr   c                   @   r   )z"ConversationInsightSerializer.Meta)	r   r   insight_typer.   descriptiondataconfidence_scorer   r   r   N)r   r    r!   r   r"   r#   r$   r%   r%   r%   r&   r'   2   s    r'   Nr4   r%   r%   r%   r&   r6   -   r5   r6   N)rest_frameworkr   seniors.serializersr   calls.serializersr   modelsr   r   r   ModelSerializerr	   r+   r6   r%   r%   r%   r&   <module>   s    