/ app / __pycache__ / schemas.cpython-312.pyc
schemas.cpython-312.pyc
 1 2  ��i����ddlmZddlmZddlmZmZmZmZGd�de�Z	Gd�de�Z
 3  Gd�d	e�ZGd
 4  �de�Zy)
�)�annotations)�Literal)�	BaseModel�
 5  ConfigDict�Field�field_validatorc���eZdZUed��Zed��Zded<ded<ded<d	ed
 6  <ed��Zd
ed<ed��Z	d
ed<ded<ed��Z
 7  d
ed<ed��Zd
ed<ded<y)�IncidentRequest�forbid��extraz&Unique enterprise incident identifier.)�description�str�incident_id�site�
business_unit�,Literal['critical', 'high', 'medium', 'low']�severity���
 8  min_length�	list[str]�alerts�logs�topology_summary�known_assets�allowed_actions�output_schema_instructionsN)�__name__�
 9  __module__�__qualname__r�model_configrr�__annotations__rrrr���app/schemas.pyr
10  r
11  su���H�-�L��)Q�R�K��R�
12  
�I���:�:���+�F�I�+��q�)�D�)�)���#�q�1�L�)�1�!&�!�!4�O�Y�4� #�#r%r
13  c�R�eZdZUed��Zded<ded<ded<ded	<d
14  ed<y)
�TriageUpdaterrrrzqLiteral['transport', 'situation_assessment', 'probable_root_cause', 'recommended_actions', 'final_decision_json']�stage�text�float�
15  elapsed_ms�int�bytes_receivedN�rr r!rr"r#r$r%r&r(r(s/���H�-�L������I����r%r(c�H�eZdZUed��Zded<ded<ded<ded<y	)
16  �RemediationSteprrr�action�ownerzLiteral['P0', 'P1', 'P2', 'P3']�priority�	rationaleNr/r$r%r&r1r1's!���H�-�L��K��J�-�-��Nr%r1c���eZdZUed��Zded<ded<ded<ded<ed	�
17  �Zded<ed
d��Zded<ed	�
18  �Z	ded<ded<ded<ded<e
19  ddd�edd���Zy)�
FinalDecisionrrrr�executive_summaryrr�suspected_root_causerrr�impacted_assetsgg�?)�ge�ler+�
20  confidencezlist[RemediationStep]�recommended_actions�escalation_teamz Literal['low', 'medium', 'high']�change_risk�bool�machine_json_validc�@�|j�}|std��|S)Nzvalue must not be blank)�strip�
21  ValueError)�cls�value�strippeds   r&�_strip_textzFinalDecision._strip_text>s#���;�;�=����6�7�7��r%N)rGr�returnr)
rr r!rr"r#rr:r=r>r�classmethodrIr$r%r&r7r70s����H�-�L�����:�:���!&�!�!4�O�Y�4����-�J��-�16�!�1D��.�D���1�1����(�*@�BS�T����U�r%r7N)
�
22  __future__r�typingr�pydanticrrrrr
23  r(r1r7r$r%r&�<module>rOsA��"��B�B�$�i�$�
�9�
� �i���I�r%