Team Ai
Apppublic

2008robocode-crypto/code-generation-system

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
schemas.cpython-314.pyc44 linesDownload Raw Back to __pycache__
1+
2Ҥ�iz��t�Rt^RIHtHtHtHt^RIHt^RIH	t	!RR]3]	4t]!RR44t]!RR	44t
]!R4R44t]!RR
44t]!RR44t]!RR44t]!RR44t]!RR44t]!RR44t!RR4tR#)zu5Schema definitions for the code generation system.6Defines strict contracts for all intermediate and final outputs.7)�Any�Dict�List�Optional)�	dataclass)�Enumc�:�]tRt^tRtRtRtRtRtRt	Rt8RtR	tR9t
R#)�	FieldTypez!Supported field types in schemas.�string�number�boolean�array�object�date�email�enum�N)�__name__�10__module__�__qualname__�__firstlineno__�__doc__�STRING�NUMBER�BOOLEAN�ARRAY�OBJECT�DATE�EMAIL�ENUM�__static_attributes__r��9C:\Users\purav\Downloads\ai intern project\src\schemas.pyr	r	s-��+�
�F�
�F��G��E�
�F��D��E��Dr!r	c�@a�]tRt^toRtRtRtRtRtV3Rlt	Rt11VtR#)�Fieldz!Represents a field in any schema.T�Nc�<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&S[S[S[S[3,,;R&S[S[S[,,;R&#)��name�type�required�description�validation_rules�enum_values)�strr	�boolrrrr)�format�
__classdict__s"�r"�__annotate__�Field.__annotate__sg�����I���O�	�12�����
��t�C��H�~�.�5���$�s�)�$�+�r!r)rrrrrr*r+r,r-�__annotate_func__r �__classdictcell__�r1s@r"r$r$s&����+��H��K�15��'+�K��r!r$c�8a�]tRt^"toRtRtRtV3RltRtVt	R#)�DBTablezDatabase table schema.Nc�<�V^8�dQh/S[;R&S[S[,;R&S[;R&S[S[S[S[3,,;R&S[S[S[,,;R&#)r'r(�fields�primary_key�	relations�indexes)r.rr$rr)r0r1s"�r"r2�DBTable.__annotate__"s_�����I��
��K��	�13�����S�#�X��'�.�
��d�3�i�
 �'�r!r)14rrrrrr<r=r4r r5r6s@r"r8r8"s���� �+/�I�#'�G��r!r8c�@a�]tRt^,toRtRtRtRtRtV3Rlt	Rt15VtR#)�APIEndpointzAPI endpoint schema.Nc��<�V^8�dQh/S[;R&S[;R&S[;R&S[S[S[S[3,,;R&S[S[S[S[3,,;R&S[S[,;R&S[S[S[,,;R&#)r'�path�methodr+�request_body�
response_body�
required_roler,)r.rrr$r)r0r1s"�r"r2�APIEndpoint.__annotate__,s������I��
�K�	�16����4��U�17�+�,�3�
��D��e��,�-�4���C�=�'���t�C�y�)�0�r!r)rrrrrrDrErFr,r4r r5r6s@r"r@r@,s&�����04�L�04�M�#'�M�,0���r!r@c�8a�]tRt^8toRtRtRtV3RltRtVt	R#)�UIComponentzUI component schema.Nc�<�V^8�dQh/S[;R&S[;R&S[S[,;R&S[S[S[,,;R&S[S[S[,,;R&#)r'r(r)r:�visibility_rulesr,)r.rr$r)r0r1s"�r"r2�UIComponent.__annotate__8sZ�����I���I�	�18
��K����t�C�y�)�0�
��t�C�y�)�0�r!r)19rrrrrrKr,r4r r5r6s@r"rIrI8s�����-1��,0���r!rIc�8a�]tRt^BtoRtRtRtV3RltRtVt	R#)�UIPagezUI page schema.Nc�<�V^8�dQh/S[;R&S[;R&S[S[,;R&S[S[,;R&S[S[,;R&#)r'rB�title�20componentsrF�data_source)r.rrIr)r0r1s"�r"r2�UIPage.__annotate__BsQ�����I���J�	�21�[�!�!���C�=�'�
��#��%�r!r)22rrrrrrFrRr4r r5r6s@r"rNrNBs�����$(�M�!%�K��r!rNc�0a�]tRt^LtoRtV3RltRtVtR#)�RolezAuthorization role.c�N<�V^8�dQh/S[;R&S[S[,;R&S[;R&#)r'r(�permissionsr+�r.r)r0r1s"�r"r2�Role.__annotate__Ls/�����I���c���	�23��r!rN�rrrrrr4r r5r6s@r"rUrULs������r!rUc�0a�]tRt^TtoRtV3RltRtVtR#)�AppIntentExtractionz"Output of Intent Extraction stage.c�<�V^8�dQh/S[;R&S[;R&S[S[,;R&S[S[,;R&S[S[,;R&S[S[,;R&S[S[,;R&#)r'�app_name�app_description�key_features�24user_roles�
core_entities�business_requirements�constraintsrX)r0r1s"�r"r2� AppIntentExtraction.__annotate__Tss�����M����	�25�s�)����S�	��
���9��� ��9�$���c���r!rNrZr6s@r"r\r\Ts����,��r!r\c�0a�]tRt^`toRtV3RltRtVtR#)�SystemDesignzOutput of System Design stage.c�<�V^8�dQh/S[S[S[S[,3,;R&S[S[S[S[3,,;R&S[S[S[S[,3,;R&S[S[,;R&S[S[,;R&S[S[,;R&#)r'�entities�26user_flows�roles_and_permissions�data_models�api_patterns�ui_structure)rr.rr)r0r1s"�r"r2�SystemDesign.__annotate__`s������3��S�	�>�"�"���T�#�s�(�^�$�$�	�27 ��T�#�Y��/�/���c���
��s�)����s�)��r!rNrZr6s@r"rgrg`�����(��r!rgc�0a�]tRt^ktoRtV3RltRtVtR#)�GeneratedConfigzFinal generated configuration.c�<�V^8�dQh/S[;R&S[;R&S[S[,;R&S[S[,;R&S[S[,;R&S[S[S[3,;R&S[S[,;R&S[S[S[3,;R&S[S[S[3,;R	&#)28r'r^r_�database_schema�29api_schema�	ui_schema�auth_config�roles�business_logic�validation_metadata)r.rr8r@rNrrrU)r0r1s"�r"r2�GeneratedConfig.__annotate__ks������M����	�30�'�]�"���[�!�!�
��F�|����c�3�h������:�����c��N�"���c�3�h��'�r!rNrZr6s@r"rrrrkrpr!rrc�va�]tRt^ytoRtR
V3RlRlltV3RlRltV3RlRltV3R	lR31ltRt	Rt32VtR#)�ValidationResultz2Represents validation result with detailed errors.Nc33�<�V^8�dQhRS[RS[S[S[,,RS[S[S[,,RS[S[S[,,/#)r'�is_valid�errors�warnings�repairs_applied)r/rrr.)r0r1s"�r"r2�ValidationResult.__annotate__|sI���5�5��5�h�t�C�y�6I�5�#�D��I�.�5�HP�QU�VY�QZ�H[�5r!c�x�WnT;'g.VnT;'g.VnT;'g.VnR#�N�rr�r�r�)�selfrr�r�r�s&&&&&r"�__init__�ValidationResult.__init__|s1�� �
��l�l���� ���B��
�.�4�4�"��r!c� <�V^8�dQhRS[/#)r'�error�r.)r0r1s"�r"r2r��s�����s�r!c�J�VPPV4RVnR#)FN)r��appendr)r�r�s&&r"�	add_error�ValidationResult.add_error�s�������5�!���
r!c� <�V^8�dQhRS[/#)r'�warningr�)r0r1s"�r"r2r��s���&�&�3�&r!c�<�VPPV4R#r�)r�r�)r�r�s&&r"�add_warning�ValidationResult.add_warning�s���
�
���W�%r!c� <�V^8�dQhRS[/#)r'�repairr�)r0r1s"�r"r2r��s���,�,��,r!c�<�VPPV4R#r�)r�r�)r�r�s&&r"�34add_repair�ValidationResult.add_repair�s�����#�#�F�+r!c�f�RVPRVPRVPRVP/#r�r�)r�s&r"�to_dict�ValidationResult.to_dict�s2����
�
��d�k�k���
�
��t�3�3�	35�	36r!)r�rr�r�)TNNN)rrrrrr�r�r�r�r�r r5r6s@r"r}r}ys:����<�5�5���&�&�,�,�37�38r!r}N)r�typingrrrr�dataclassesrrrr.r	r$r8r@rIrNrUr\rgrrr}rr!r"�<module>r�s���39-�,�!��	��T�	��,�,��,��(�(��(��1�1��1��1�1��1��&�&��&�����������������40(�41(��42(�43�44r!