
    W6i                     Z    S SK JrJr  S SKJr  S SKJrJrJr  S SKr\ " S S5      5       r	g)    )	dataclassasdict)datetime)ListDictAnyNc            (          \ rS rSr% \\S'   \\S'   \\S'   \\\4   \S'   \\S'   \\S'   \\   \S'   \\\4   \S	'   \\\4   \S
'   \\S'   \\S'   \\S'   \\S'   Sr	\\\\4      \S'   Sr
\\S'   Sr\\S'   Sr\\S'   Sr\\S'   Sr\\S'   \   S S\S\S\S\\\4   S\S\S\\   S	\\\4   S
\\\4   S\S\S\S\\\\4      S\S\S\S\S\SS 4&S jj5       rS\\\4   4S jr\S\\\4   SS 4S j5       rSrg)!RoleplayScenario   
session_idcategory	objectivedetailsai_rolelearner_roleskills_to_assessscenario_setupai_characterscenario_introconversation_startersuccess_criteria
created_atNroleplay_questions roleplay_namerolemedium
difficulty,  duration   max_attemptsreturnc                     U " S0 SU_SU_SU_SU_SU_SU_SUS S _S	U_S
U	_SU
_SU_SU_SU_SU_SU_SU_SU_SU_S[         R                  " 5       R                  5       _6$ )Nr   r   r   r   r   r   r      r   r   r   r   r   r   r   r   r   r    r"   r    )r   now	isoformat)clsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r"   s                      A/var/www/eduai.edurigo.com/roleplay/production/models/scenario.py
create_newRoleplayScenario.create_new   s      
!

  
 	

 
 &
 .bq1
 *
 &
 *
 "6
 .
  2
 (
 
  "!
" #
$ &%
&  ||~//1'
 	
    c                     [        U 5      $ )N)r   )selfs    r*   to_dictRoleplayScenario.to_dict;   s    d|r-   datac                 t   SU;  a  SUR                  SS5       S3US'   SU;   a  SU;  a  UR                  S5      US'   SU;  a  S US'   S	U;  a  S
US	'   SU;  a  UR                  SS
5      US'   SU;  a%  UR                  S0 5      R                  SS5      US'   SU;  a  SUS'   SU;  a  SUS'   U " S0 UD6$ )Nr   z+You are about to engage in a roleplay as a r   participantzH. The scenario will begin when the other person starts the conversation.idr   r   r   r   r   r   r   difficulty_levelr   r    r   r"   r!   r&   )getpop)r)   r2   s     r*   	from_dictRoleplayScenario.from_dict>   s     4''RSWS[S[\jlySzR{  |D  &ED!" 4<L4!%$D  t+)-D%& $&$&D!88NB7DLt#!%)R!8!<!<=OQY!ZDT!"D%#$D {T{r-   r&   )Nr   r   r   r   r!   )__name__
__module____qualname____firstlineno__str__annotations__r   r   r   r   r   r   r   r    intr"   classmethodr+   r0   r9   __static_attributes__r&   r-   r*   r
   r
      s   OMN#s(^L3icN"sCx. O/3T#s(^,3M3D#NJHcL#
 ?CNV<=
C 
3 
3 
QUVY[^V^Q_ 

/2
FJ3i
#'S>
AEc3h
 $'
 ?B
 VY
 (,DcN';	

 #&

 36

 IL
 !
 7:
 CU
 
:c3h  T#s(^ 0B  r-   r
   )
dataclassesr   r   r   typingr   r   r   uuidr
   r&   r-   r*   <module>rG      s.    )  " " 
Q Q Qr-   