
    i                     X    d dl Zd dlmc mZ d dlmZ d dlm	Z	 d dl
mZmZ deddfdZdS )    N)Path)AgentConfig)	dump_data	load_datatmp_pathreturnc                    | dz  }t          dddddddd	id	d
ddiid
gd          }t          ||                                           t          |          }|d         }d}||k    }|slt	          j        d|fd||f          t	          j        |          t	          j        |          dz  }dd|iz  }t          t	          j        |                    d x}x}}d S )Nz
agent.yamlarch	Architectdescpromptinouttypeobjectresponsestring)r   
propertiesrequired)nameroledescriptionsystem_promptinput_schema_descriptionoutput_schema_descriptioninput_schemaoutput_schemar   )==)z%(py1)s == %(py4)s)py1py4zassert %(py6)spy6)	r   r   
model_dumpr   
@pytest_ar_call_reprcompare	_safereprAssertionError_format_explanation)	r   pathconfigloaded@py_assert0@py_assert3@py_assert2@py_format5@py_format7s	            ?/root/projects/multi-agents-meeting/tests/test_serialization.pytest_yaml_round_tripr1      s-   l"D!%"'h'%'9:#
 
  F dF%%''(((t__F&>#V#>V##########>V#####>####V#############################    )builtins@py_builtins_pytest.assertion.rewrite	assertionrewriter#   pathlibr   core.modelsr   core.serializationr   r   r1    r2   r0   <module>r<      s                        # # # # # # 3 3 3 3 3 3 3 3$4 $D $ $ $ $ $ $r2   