agi-med-common 4.2.14__tar.gz → 4.2.15__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 (26) hide show
  1. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/PKG-INFO +1 -1
  2. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/__init__.py +2 -2
  3. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/chat_item.py +1 -0
  4. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/utils.py +0 -1
  5. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common.egg-info/PKG-INFO +1 -1
  6. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/README.md +0 -0
  7. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/pyproject.toml +0 -0
  8. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/requirements.txt +0 -0
  9. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/setup.cfg +0 -0
  10. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/file_storage.py +0 -0
  11. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/logger/__init__.py +0 -0
  12. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/logger/log_level_enum.py +0 -0
  13. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/logger/logger.py +0 -0
  14. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/__init__.py +0 -0
  15. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/_base.py +0 -0
  16. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
  17. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
  18. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/enums.py +0 -0
  19. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/models/widget.py +0 -0
  20. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/parallel_map.py +0 -0
  21. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/validators.py +0 -0
  22. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common/xml_parser.py +0 -0
  23. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
  24. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
  25. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common.egg-info/requires.txt +0 -0
  26. {agi_med_common-4.2.14 → agi_med_common-4.2.15}/src/agi_med_common.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 4.2.14
3
+ Version: 4.2.15
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
@@ -1,4 +1,4 @@
1
- __version__ = "4.2.14"
1
+ __version__ = "4.2.15"
2
2
 
3
3
  from .logger import LogLevelEnum, logger_init, log_llm_error
4
4
  from .models import (
@@ -13,7 +13,7 @@ from .models import (
13
13
  from .models.widget import Widget
14
14
  from .file_storage import FileStorage, ResourceId
15
15
  from .models import DiagnosticsXMLTagEnum, MTRSXMLTagEnum, DoctorChoiceXMLTagEnum
16
- from .utils import make_session_id, read_json, try_parse_json, try_parse_int, pretty_line
16
+ from .utils import make_session_id, read_json, try_parse_json, try_parse_int, try_parse_float, pretty_line
17
17
  from .validators import ExistingPath, ExistingFile, ExistingDir, StrNotEmpty, SecretStrNotEmpty, Prompt, Message
18
18
  from .xml_parser import XMLParser
19
19
  from .parallel_map import parallel_map
@@ -34,6 +34,7 @@ class OuterContextItem(_Base):
34
34
  client_id: str = Field("", alias="ClientId", examples=["543216789"])
35
35
  track_id: str = Field(default="Consultation", alias="TrackId")
36
36
  entrypoint_key: str = Field("", alias="EntrypointKey", examples=["giga"])
37
+ language_code: str = Field("ru", alias="LanguageCode", examples=["ru"])
37
38
 
38
39
  def create_id(self, short: bool = False, clean: bool = False) -> str:
39
40
  uid, sid, cid = self.user_id, self.session_id, self.client_id
@@ -36,7 +36,6 @@ def try_parse_int(text: str) -> int | None:
36
36
  except ValueError:
37
37
  return None
38
38
 
39
-
40
39
  def pretty_line(text: str, cut_count: int = 100) -> str:
41
40
  if len(text) > 100:
42
41
  text_cut = text[:cut_count]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 4.2.14
3
+ Version: 4.2.15
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11