CoolFace
Apppublic

kumar6591/data-quality-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
models.cpython-311.pyc18 linesDownload Raw Back to __pycache__
12�)�i<����ddlmZddlmZmZddlmZmZGd�de��ZGd�de��Z	Gd�d	e��Z3Gd4�de��ZGd�d
e��ZGd�de��Z
Gd�de��ZdS)�)�annotations)�Any�Literal)�	BaseModel�Fieldc�B�eZdZUdZded<edd���Zded<d	S)5�FindingConfidencez6A single audit finding with agent-reported confidence.r�value�g�?��ge�le�float�6confidenceN)�__name__�7__module__�__qualname__�__doc__�__annotations__rr���7/Users/hemanthkunta/meta/data-quality-env/env/models.pyr	r	sA�������@�@��J�J�J�����-�-�-�J�-�-�-�-�-�-rr	c�Z�eZdZUdZded<ded<ded<ded	<ded8<ded<ded<d
S)�AuditReportz/Structured audit report submitted by the agent.zdict[str, FindingConfidence]�null_issuesr	�duplicate_row_countzlist[dict[str, Any]]�schema_violationsz	list[str]�drifted_columns�
drift_details�relational_issues�recommended_fixesN)rrrrrrrrrrsl�������9�9�-�-�-�-�*�*�*�*�+�+�+�+�����/�/�/�/�+�+�+�+� � � � � � rrc�6�eZdZUded<dZded<dZded<dS)�Actionz,Literal['query', 'submit_report', 'fix_sql']�action_typeN�9str | None�sqlzAuditReport | None�report)rrrrr&r'rrrr#r#s@�������=�=�=�=��C�����!%�F�%�%�%�%�%�%rr#c�~�eZdZUded<ded<ded<ded<ded	<ded10<ded<ded
<ded<ded<ded<dS)�Observation�int�task_id�str�task_descriptionzdict[str, dict[str, str]]�tableszdict[str, int]�11row_counts�step�	max_steps�query_credits_remaining�Literal['audit', 'fix']�phasezlist[dict] | None�last_query_resultr%�last_action_errorzfloat | None�last_fix_scoreN�rrrrrrrr)r)!s���������L�L�L�����%�%�%�%�����
�I�I�I��N�N�N� � � � �"�"�"�"�(�(�(�(�!�!�!�!� � � � � � rr)c�B�eZdZUded<ded<ded<ded<ded<dS)�RewardBreakdownr�base_audit_score�confidence_brier_adjustment�budget_efficiency_bonus�fix_verification_bonus�totalNr8rrrr:r:/sI�����������&�&�&�&�"�"�"�"�!�!�!�!��L�L�L�L�Lrr:c�R�eZdZUedd���Zded<ded<ded	<d12ed<dS)
�Rewardg�g�?rrr13r:�	breakdown�bool�done�dict[str, Any]�infoN)rrrrr14rrrrrArA7sS��������5�D�T�*�*�*�E�*�*�*�*������J�J�J������rrAc��eZdZUded<ded<dZded<dZded<dZded	<d15Zded<d
Zded<dZ	ded<dZ16ded<iZded<dZded<dZ
ded<dS)�EpisodeStater*r+�seedrr0�r1�17�
query_credits�auditr3r4��fix_steps_remainingFrC�report_submittedrDrE�gold_faultsrr�audit_score�	fix_bonusN)rrrrr0r1rLr4rOrPrDrQrRrSrrrrHrH>s���������L�L�L�
�I�I�I��D�M�M�M�M��I������M�����%,�E�,�,�,�,� �� � � � �"��"�"�"�"��D�����"$�K�$�$�$�$��K������I������rrHN)�18__future__r�typingrr�pydanticrrr	rr#r)r:rArHrrr�<module>rWsw��"�"�"�"�"�"���������%�%�%�%�%�%�%�%�.�.�.�.�.�	�.�.�.�	!�	!�	!�	!�	!�)�	!�	!�	!�&�&�&�&�&�Y�&�&�&�!�!�!�!�!�)�!�!�!������i���������Y���������9�����r