CoolFace
Apppublic

SyncShift/sql-correction-env

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
models.cpython-314.pyc37 linesDownload Raw Back to __pycache__
1+
2�g�i�����^RIHtHtHt^RIHtHtHt^RIH	t	H3t4!RR]4t!RR]4t!RR	]4t
!R5R]64t!RR
]74t!RR]84tR#)�)�List�Optional�Any)�Action�Observation�State)�Field�	BaseModelc�,a�]tRt^toV3RltRtVtR#)�	SQLActionc�&<�V^8�dQh/S[;R&#)��corrected_query)�str)�format�
__classdict__s"��DC:\Users\srava\Downloads\SQL corrector agent files\sql_env\models.py�__annotate__�SQLAction.__annotate__s��������N��__name__�9__module__�__qualname__�__firstlineno__�__annotate_func__�__static_attributes__�__classdictcell__�rs@rrr�����rrc�Da�]tRt^10toRtRtRtRtRtRt	V3Rlt11RtVtR#)�SQLObservationak12Observation returned to the agent each step.13 14Fields:15    task_id:          Unique identifier for the current task instance.16    broken_query:     The malformed SQL query the agent must fix.17    schema_context:   Table/column definitions (hard tasks only).18    error_hint:       Plain-language hint about the error (easy tasks only).19    step_number:      Current step within the episode (0 = initial observation).20    steps_remaining:  How many steps are left before the episode ends.21    previous_attempt: The agent's SQL output from the previous step.22    feedback:         Grader feedback on the previous attempt.23Nc��<�V^8�dQh/S[;R&S[;R&S[S[,;R&S[S[,;R&S[;R&S[S[,;R&S[S[,;R&S[S[,;R&#)	r�task_id�broken_query�schema_context�24error_hint�step_number�steps_remaining�previous_attempt�feedback)rr�int)rrs"�rr�SQLObservation.__annotate__25s������L����� �S�M�(�!�"��
�$�#�$��%�&�c�]�)�'�(�s�m�*�)�*�s�m�"�+rr)
rrrr�__doc__r'r(r*r+r,rrrr s@rr#r#26s-�����%)�N� $�J�%)�O�&*��"�H�+�rr#c�,a�]tRt^"toV3RltRtVtR#)�SQLStatec�~<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&S[;R&S[;R&S[S[,;R&#)rr%�27difficulty�28step_count�	max_steps�done�last_reward�rewards_history)rr-�bool�floatr)rrs"�rr�SQLState.__annotate__"s[����
�L���O���O���N�	�29�J����
��%�[� �rrNrr s@rr1r1"r!rr1c�@a�]tRt^,to]!RRR7tV3RltRtVtR#)�	SQLRewardgg�?)�gt�ltc�2<�V^8�dQh/S[;R&S[;R&#)r�value�reason)r:r)rrs"�rr�SQLReward.__annotate__,s�����(��
�K�rrN)	rrrrr	rArrrr s@rr=r=,s�����C�C�(�E��rr=c�Ta�]tRt^2toRtRt^t]!RRR7tRR/t	V3Rlt30RtVtR#)�SQLTaskNT)�default�exclude�arbitrary_types_allowedc�<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&S[S[,;R&S[S[,;R&S[;R&S[S[,;R&#)	rr%r3r&�canonical_answerr'r(r5�grader)rrr-r)rrs"�rr�SQLTask.__annotate__2ss����
�L���O�������	�31�S�M�(����
�$�
����
�S�M�=�rr)
rrrrr'r(r5r	rK�model_configrrrr s@rrErE2s3����32%)�N� $�J��I�!�$��=�F�-�t�4�L��rrEc�>a�]tRt^?to]!]R7tV3RltRtVt	R#)�33StepResult)�default_factoryc�J<�V^8�dQh/S[;R&S[;R&S[;R&S[;R&#)r�observation�rewardr6�info)r#r:r9�dict)rrs"�rr�StepResult.__annotate__?s3��������M���J���,�	rrN)34rrrrr	rUrTrrrr s@rrOrO?s�����t�,�D�	�rrON)�typingrrr�openenv.core.env_server.typesrrr�pydanticr	r35rr#r1r=rErOrrr�<module>rZs\��&�&�D�D�%����#�[�#�0!�u�!��	��365�i�375�-��-r