agi-med-common 3.1.2__py3-none-any.whl → 3.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agi_med_common/__init__.py +4 -2
 - agi_med_common/models/__init__.py +1 -1
 - agi_med_common/models/enums/__init__.py +3 -1
 - agi_med_common/models/enums/action_enum.py +17 -0
 - agi_med_common/models/enums/moderation_label_enum.py +13 -0
 - agi_med_common/models/enums/mtrs_label_enum.py +7 -3
 - agi_med_common/models/enums/state_enum.py +9 -0
 - {agi_med_common-3.1.2.dist-info → agi_med_common-3.2.1.dist-info}/METADATA +1 -1
 - {agi_med_common-3.1.2.dist-info → agi_med_common-3.2.1.dist-info}/RECORD +11 -9
 - agi_med_common/models/enums/states_enum.py +0 -30
 - {agi_med_common-3.1.2.dist-info → agi_med_common-3.2.1.dist-info}/WHEEL +0 -0
 - {agi_med_common-3.1.2.dist-info → agi_med_common-3.2.1.dist-info}/top_level.txt +0 -0
 
    
        agi_med_common/__init__.py
    CHANGED
    
    | 
         @@ -1,10 +1,12 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            __version__ = "3.1 
     | 
| 
      
 1 
     | 
    
         
            +
            __version__ = "3.2.1"
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            from .logger import LogLevelEnum, logger_init
         
     | 
| 
       4 
4 
     | 
    
         
             
            from .models import (
         
     | 
| 
       5 
5 
     | 
    
         
             
                TrackIdEnum,
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                StateEnum,
         
     | 
| 
       7 
7 
     | 
    
         
             
                MTRSLabelEnum,
         
     | 
| 
      
 8 
     | 
    
         
            +
                ActionEnum,
         
     | 
| 
      
 9 
     | 
    
         
            +
                ModerationLabelEnum,
         
     | 
| 
       8 
10 
     | 
    
         
             
                ChatItem,
         
     | 
| 
       9 
11 
     | 
    
         
             
                InnerContextItem,
         
     | 
| 
       10 
12 
     | 
    
         
             
                OuterContextItem,
         
     | 
| 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            from ._base import _Base
         
     | 
| 
       2 
     | 
    
         
            -
            from .enums import TrackIdEnum,  
     | 
| 
      
 2 
     | 
    
         
            +
            from .enums import TrackIdEnum, StateEnum, MTRSLabelEnum, ActionEnum, ModerationLabelEnum
         
     | 
| 
       3 
3 
     | 
    
         
             
            from .chat_item import ChatItem, OuterContextItem, InnerContextItem, ReplicaItem
         
     | 
| 
       4 
4 
     | 
    
         
             
            from .chat_item_with_state import ChatItemWithState, InnerContextWithState, ReplicaWithState
         
     | 
| 
       5 
5 
     | 
    
         
             
            from .base_config_models import GigaChatConfig
         
     | 
| 
         @@ -0,0 +1,17 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            from enum import StrEnum, auto
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            class ActionEnum(StrEnum):
         
     | 
| 
      
 5 
     | 
    
         
            +
                START = auto()
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
                GREETING = auto()
         
     | 
| 
      
 8 
     | 
    
         
            +
                MODERATION = auto()
         
     | 
| 
      
 9 
     | 
    
         
            +
                ANSWER = auto()
         
     | 
| 
      
 10 
     | 
    
         
            +
                QUESTION = auto()
         
     | 
| 
      
 11 
     | 
    
         
            +
                CRITICAL = auto()
         
     | 
| 
      
 12 
     | 
    
         
            +
                MED_TEST_DECRYPTION = auto()
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                DIAGNOSIS = auto()
         
     | 
| 
      
 15 
     | 
    
         
            +
                REPORT = auto()
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
                FINAL = auto()
         
     | 
| 
         @@ -0,0 +1,13 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            from enum import IntEnum, auto
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            class ModerationLabelEnum(IntEnum):
         
     | 
| 
      
 5 
     | 
    
         
            +
                @staticmethod
         
     | 
| 
      
 6 
     | 
    
         
            +
                def _generate_next_value_(name, start, count, last_values):
         
     | 
| 
      
 7 
     | 
    
         
            +
                    return count
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                OK = auto()
         
     | 
| 
      
 10 
     | 
    
         
            +
                NON_MED = auto()
         
     | 
| 
      
 11 
     | 
    
         
            +
                CHILD = auto()
         
     | 
| 
      
 12 
     | 
    
         
            +
                ABSURD = auto()
         
     | 
| 
      
 13 
     | 
    
         
            +
                GREETING = auto()
         
     | 
| 
         @@ -1,6 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            from enum import StrEnum
         
     | 
| 
      
 1 
     | 
    
         
            +
            from enum import StrEnum, auto
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            class MTRSLabelEnum(StrEnum):
         
     | 
| 
       5 
     | 
    
         
            -
                 
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 5 
     | 
    
         
            +
                @staticmethod
         
     | 
| 
      
 6 
     | 
    
         
            +
                def _generate_next_value_(name: str, start: int, count: int, last_values: list[str]) -> str:
         
     | 
| 
      
 7 
     | 
    
         
            +
                    return name.upper()
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                LABORATORY = auto()
         
     | 
| 
      
 10 
     | 
    
         
            +
                INSTRUMENTAL = auto()
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            agi_med_common/__init__.py,sha256= 
     | 
| 
      
 1 
     | 
    
         
            +
            agi_med_common/__init__.py,sha256=uY4L-vBlFDl44XcDzT9bA281p_JW7129mwccpsY-npQ,444
         
     | 
| 
       2 
2 
     | 
    
         
             
            agi_med_common/utils.py,sha256=4GV1yNZiRG3KYOh859dvOZI899z7_s_YN3aXzthMgwU,399
         
     | 
| 
       3 
3 
     | 
    
         
             
            agi_med_common/validators.py,sha256=R678gjPp-5XbnocRuEtdOQgJyCCOurxwaOe2nT04kSg,705
         
     | 
| 
       4 
4 
     | 
    
         
             
            agi_med_common/logger/__init__.py,sha256=RW_0VZtbeJ4RsLqUXZUQWl5CtV9g840rU7qRlf5u49E,96
         
     | 
| 
       5 
5 
     | 
    
         
             
            agi_med_common/logger/log_level_enum.py,sha256=lWuSMho9I0v_xf1RuwpERx5o8NJXaavjwxSdh8fxMqE,477
         
     | 
| 
       6 
6 
     | 
    
         
             
            agi_med_common/logger/logger.py,sha256=_tmBPpZr1UaIycYzuvwrnPrVeu5kcwJBXSbTb7InGjI,842
         
     | 
| 
       7 
     | 
    
         
            -
            agi_med_common/models/__init__.py,sha256= 
     | 
| 
      
 7 
     | 
    
         
            +
            agi_med_common/models/__init__.py,sha256=ebG_iVj_cQ8Em6pdsLarl8zSfotEF3KBV1XMpDyS5YY,336
         
     | 
| 
       8 
8 
     | 
    
         
             
            agi_med_common/models/_base.py,sha256=qNdH8x3x3mYbo5XgWtR9VpEarxsEvXvzynadUlDvHmU,149
         
     | 
| 
       9 
9 
     | 
    
         
             
            agi_med_common/models/base_config_models/__init__.py,sha256=KjS_bSCka8BOMsigwcIML-e6eNB2ouMU6gxlhRmzeuY,44
         
     | 
| 
       10 
10 
     | 
    
         
             
            agi_med_common/models/base_config_models/gigachat_config.py,sha256=WNSCTO8Fjpxc1v2LRUHfKqo9aeMDpXltTHYBFgTD2N0,422
         
     | 
| 
         @@ -17,11 +17,13 @@ agi_med_common/models/chat_item_with_state/__init__.py,sha256=KrXgsvJnLzS1kSi9_Y 
     | 
|
| 
       17 
17 
     | 
    
         
             
            agi_med_common/models/chat_item_with_state/chat_with_state.py,sha256=IgZh0CRoar56eM8QOblPx8tsIm9NPO5tOj0mVC8yj40,205
         
     | 
| 
       18 
18 
     | 
    
         
             
            agi_med_common/models/chat_item_with_state/inner_context_with_state.py,sha256=qIwqCHn-JuQemcVQqLDzkpuaPRNCjIL_-h1wm1Jv5WU,212
         
     | 
| 
       19 
19 
     | 
    
         
             
            agi_med_common/models/chat_item_with_state/replica_with_state.py,sha256=YvUcCo1HTfxYUEwZ5T7UqLW2WkZ8SFvVNQZf-5mK5Dg,192
         
     | 
| 
       20 
     | 
    
         
            -
            agi_med_common/models/enums/__init__.py,sha256= 
     | 
| 
       21 
     | 
    
         
            -
            agi_med_common/models/enums/ 
     | 
| 
       22 
     | 
    
         
            -
            agi_med_common/models/enums/ 
     | 
| 
      
 20 
     | 
    
         
            +
            agi_med_common/models/enums/__init__.py,sha256=7TyOshcmklii1Cvx76Kxw4Ly9Wei2hsX1aHk6kzkVrY,207
         
     | 
| 
      
 21 
     | 
    
         
            +
            agi_med_common/models/enums/action_enum.py,sha256=ZZtSBlOsQWvJ1UYqmsMsVLrzO1kJdImqJMqI0_KSV9M,287
         
     | 
| 
      
 22 
     | 
    
         
            +
            agi_med_common/models/enums/moderation_label_enum.py,sha256=Ixz-7_6RneNwGzDzO9pV38V6ZutUQa2pUS2torMDY8s,271
         
     | 
| 
      
 23 
     | 
    
         
            +
            agi_med_common/models/enums/mtrs_label_enum.py,sha256=6emBndt3SCsQVZZFKQYCV2_iyjjmZEhwejJKJu39ZAw,257
         
     | 
| 
      
 24 
     | 
    
         
            +
            agi_med_common/models/enums/state_enum.py,sha256=p7XhDxBxPeeSgbLWitq6JpJLKntS3XMHon_EevbnhEs,163
         
     | 
| 
       23 
25 
     | 
    
         
             
            agi_med_common/models/enums/track_id_enum.py,sha256=YoP15BTGjaFDxCOtjsqfwuMTW-BhcaQyEdxLfK7RQUA,454
         
     | 
| 
       24 
     | 
    
         
            -
            agi_med_common-3.1. 
     | 
| 
       25 
     | 
    
         
            -
            agi_med_common-3.1. 
     | 
| 
       26 
     | 
    
         
            -
            agi_med_common-3.1. 
     | 
| 
       27 
     | 
    
         
            -
            agi_med_common-3.1. 
     | 
| 
      
 26 
     | 
    
         
            +
            agi_med_common-3.2.1.dist-info/METADATA,sha256=NH-OaoLWdsngpKmpcehrQAq3gqxPbFqzd4h67ZJ7Eck,520
         
     | 
| 
      
 27 
     | 
    
         
            +
            agi_med_common-3.2.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
         
     | 
| 
      
 28 
     | 
    
         
            +
            agi_med_common-3.2.1.dist-info/top_level.txt,sha256=26o565jF_7wYQj7-YJfTedtT9yDxDcf8RNikOYuPq78,15
         
     | 
| 
      
 29 
     | 
    
         
            +
            agi_med_common-3.2.1.dist-info/RECORD,,
         
     | 
| 
         @@ -1,30 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            from enum import StrEnum, auto
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            class StatesEnum(StrEnum):
         
     | 
| 
       5 
     | 
    
         
            -
                """
         
     | 
| 
       6 
     | 
    
         
            -
                Класс для хранения имен состояний.
         
     | 
| 
       7 
     | 
    
         
            -
                """
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
                BEGIN = auto()
         
     | 
| 
       10 
     | 
    
         
            -
                START = auto()
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
                IS_CHILD = auto()
         
     | 
| 
       13 
     | 
    
         
            -
                IS_ABSURD = auto()
         
     | 
| 
       14 
     | 
    
         
            -
                CRITICAL = auto()
         
     | 
| 
       15 
     | 
    
         
            -
                WHAT_COMPLAINTS = auto()
         
     | 
| 
       16 
     | 
    
         
            -
                NOT_MEDICAL = auto()
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                ERROR_STATE = auto()
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
                CONSULTATION_TRANSIT = auto()
         
     | 
| 
       21 
     | 
    
         
            -
                NOT_MEDICAL_DOC = auto()
         
     | 
| 
       22 
     | 
    
         
            -
                CONSULTATION = auto()
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
                INFO_COLLECTION = auto()
         
     | 
| 
       25 
     | 
    
         
            -
                MAKE_DIAGNOSIS = auto()
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
                SUMMARIZATION = auto()
         
     | 
| 
       28 
     | 
    
         
            -
                MEDICAL_TEST_RECOMMENDATION = auto()
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
                ANALYSIS_CONSULTATION = auto()
         
     | 
| 
         
            File without changes
         
     | 
| 
         
            File without changes
         
     |