agi-med-common 3.1.2__tar.gz → 3.2.0__tar.gz

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.
Files changed (38) hide show
  1. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/PKG-INFO +1 -1
  2. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/__init__.py +3 -1
  3. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/__init__.py +1 -1
  4. agi_med_common-3.2.0/src/agi_med_common/models/enums/__init__.py +5 -0
  5. agi_med_common-3.2.0/src/agi_med_common/models/enums/action_enum.py +17 -0
  6. agi_med_common-3.2.0/src/agi_med_common/models/enums/moderation_label_enum.py +13 -0
  7. agi_med_common-3.2.0/src/agi_med_common/models/enums/mtrs_label_enum.py +10 -0
  8. agi_med_common-3.2.0/src/agi_med_common/models/enums/state_enum.py +9 -0
  9. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common.egg-info/PKG-INFO +1 -1
  10. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common.egg-info/SOURCES.txt +3 -1
  11. agi_med_common-3.1.2/src/agi_med_common/models/enums/__init__.py +0 -3
  12. agi_med_common-3.1.2/src/agi_med_common/models/enums/mtrs_label_enum.py +0 -6
  13. agi_med_common-3.1.2/src/agi_med_common/models/enums/states_enum.py +0 -30
  14. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/README.md +0 -0
  15. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/pyproject.toml +0 -0
  16. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/requirements.txt +0 -0
  17. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/setup.cfg +0 -0
  18. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/logger/__init__.py +0 -0
  19. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/logger/log_level_enum.py +0 -0
  20. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/logger/logger.py +0 -0
  21. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/_base.py +0 -0
  22. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
  23. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
  24. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item/__init__.py +0 -0
  25. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item/chat_item.py +0 -0
  26. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item/inner_context_item.py +0 -0
  27. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item/outer_context_item.py +0 -0
  28. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item/replica_item.py +0 -0
  29. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item_with_state/__init__.py +0 -0
  30. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item_with_state/chat_with_state.py +0 -0
  31. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item_with_state/inner_context_with_state.py +0 -0
  32. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/chat_item_with_state/replica_with_state.py +0 -0
  33. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/models/enums/track_id_enum.py +0 -0
  34. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/utils.py +0 -0
  35. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common/validators.py +0 -0
  36. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
  37. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common.egg-info/requires.txt +0 -0
  38. {agi_med_common-3.1.2 → agi_med_common-3.2.0}/src/agi_med_common.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: agi_med_common
3
- Version: 3.1.2
3
+ Version: 3.2.0
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
@@ -1,10 +1,12 @@
1
- __version__ = "3.1.2"
1
+ __version__ = "3.2.0"
2
2
 
3
3
  from .logger import LogLevelEnum, logger_init
4
4
  from .models import (
5
5
  TrackIdEnum,
6
6
  StatesEnum,
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, StatesEnum, MTRSLabelEnum
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,5 @@
1
+ from .track_id_enum import TrackIdEnum
2
+ from .state_enum import StateEnum
3
+ from .mtrs_label_enum import MTRSLabelEnum
4
+ from .action_enum import ActionEnum
5
+ from .moderation_label_enum import ModerationLabelEnum
@@ -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()
@@ -0,0 +1,10 @@
1
+ from enum import StrEnum, auto
2
+
3
+
4
+ class MTRSLabelEnum(StrEnum):
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()
@@ -0,0 +1,9 @@
1
+ from enum import StrEnum, auto
2
+
3
+
4
+ class StateEnum(StrEnum):
5
+ EMPTY = auto()
6
+ COLLECTION = auto()
7
+ READINESS = auto()
8
+ FINAL = auto()
9
+ ERROR = auto()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: agi_med_common
3
- Version: 3.1.2
3
+ Version: 3.2.0
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
@@ -26,6 +26,8 @@ src/agi_med_common/models/chat_item_with_state/chat_with_state.py
26
26
  src/agi_med_common/models/chat_item_with_state/inner_context_with_state.py
27
27
  src/agi_med_common/models/chat_item_with_state/replica_with_state.py
28
28
  src/agi_med_common/models/enums/__init__.py
29
+ src/agi_med_common/models/enums/action_enum.py
30
+ src/agi_med_common/models/enums/moderation_label_enum.py
29
31
  src/agi_med_common/models/enums/mtrs_label_enum.py
30
- src/agi_med_common/models/enums/states_enum.py
32
+ src/agi_med_common/models/enums/state_enum.py
31
33
  src/agi_med_common/models/enums/track_id_enum.py
@@ -1,3 +0,0 @@
1
- from .track_id_enum import TrackIdEnum
2
- from .states_enum import StatesEnum
3
- from .mtrs_label_enum import MTRSLabelEnum
@@ -1,6 +0,0 @@
1
- from enum import StrEnum
2
-
3
-
4
- class MTRSLabelEnum(StrEnum):
5
- LABORATORY = "LABORATORY"
6
- INSTRUMENTAL = "INSTRUMENTAL"
@@ -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