agi-med-common 5.0.9__tar.gz → 5.0.10__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 (32) hide show
  1. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/PKG-INFO +1 -1
  2. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/__init__.py +3 -3
  3. agi_med_common-5.0.10/src/agi_med_common/api/content_interpreter_api.py +19 -0
  4. agi_med_common-5.0.10/src/agi_med_common/api/content_interpreter_remote_api.py +20 -0
  5. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common.egg-info/PKG-INFO +1 -1
  6. agi_med_common-5.0.9/src/agi_med_common/api/content_interpreter_api.py +0 -19
  7. agi_med_common-5.0.9/src/agi_med_common/api/content_interpreter_remote_api.py +0 -21
  8. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/README.md +0 -0
  9. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/pyproject.toml +0 -0
  10. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/requirements.txt +0 -0
  11. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/setup.cfg +0 -0
  12. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/api/chat_manager_api.py +0 -0
  13. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/file_storage.py +0 -0
  14. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/logger/__init__.py +0 -0
  15. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/logger/log_level_enum.py +0 -0
  16. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/logger/logger.py +0 -0
  17. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/__init__.py +0 -0
  18. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/_base.py +0 -0
  19. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
  20. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
  21. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/chat_item.py +0 -0
  22. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/enums.py +0 -0
  23. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/tracks.py +0 -0
  24. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/models/widget.py +0 -0
  25. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/parallel_map.py +0 -0
  26. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/utils.py +0 -0
  27. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/validators.py +0 -0
  28. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common/xml_parser.py +0 -0
  29. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
  30. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
  31. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/src/agi_med_common.egg-info/requires.txt +0 -0
  32. {agi_med_common-5.0.9 → agi_med_common-5.0.10}/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: 5.0.9
3
+ Version: 5.0.10
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__ = "5.0.9"
1
+ __version__ = "5.0.10"
2
2
 
3
3
  from .logger import LogLevelEnum, logger_init, log_llm_error
4
4
  from .models import (
@@ -17,5 +17,5 @@ from .xml_parser import XMLParser
17
17
  from .parallel_map import parallel_map
18
18
  from .models.tracks import TrackInfo, DomainInfo
19
19
  from .api.chat_manager_api import ChatManagerAPI
20
- from .api.content_interpreter_api import ContentInterpreterRequest, ContentInterpreterResponse, ContentInterpreterAPI
21
- from .api.content_interpreter_remote_api import ContentInterpreterRemoteRequest, ContentInterpreterRemoteResponse, ContentInterpreterRemoteAPI
20
+ from .api.content_interpreter_api import ContentInterpreterAPI
21
+ from .api.content_interpreter_remote_api import ContentInterpreterRemoteAPI
@@ -0,0 +1,19 @@
1
+ from typing import Tuple
2
+
3
+ from agi_med_common.file_storage import ResourceId
4
+ from agi_med_common.models import ChatItem
5
+
6
+
7
+ Interpretation = str
8
+
9
+
10
+ class ContentInterpreterAPI:
11
+ def interpret(
12
+ self,
13
+ kind: str,
14
+ query: str,
15
+ resource_id: str,
16
+ chat: ChatItem | None = None,
17
+ request_id: str = "",
18
+ ) -> Tuple[Interpretation, ResourceId]:
19
+ raise NotImplementedError
@@ -0,0 +1,20 @@
1
+ from pydantic import BaseModel
2
+ from agi_med_common import ChatItem
3
+
4
+
5
+ class ContentInterpreterRemoteResponse(BaseModel):
6
+ interpretation: str
7
+ resource_fname: str
8
+ resource: bytes
9
+
10
+
11
+ class ContentInterpreterRemoteAPI:
12
+ def interpret_remote(
13
+ self,
14
+ kind: str,
15
+ query: str,
16
+ resource: bytes,
17
+ chat: ChatItem | None = None,
18
+ request_id: str = "",
19
+ ) -> ContentInterpreterRemoteResponse:
20
+ raise NotImplementedError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 5.0.9
3
+ Version: 5.0.10
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
@@ -1,19 +0,0 @@
1
- from agi_med_common.models import ChatItem
2
- from pydantic import BaseModel
3
-
4
-
5
- class ContentInterpreterRequest(BaseModel):
6
- kind: str
7
- query: str
8
- resource_id: str
9
- chat: ChatItem | None = None
10
-
11
-
12
- class ContentInterpreterResponse(BaseModel):
13
- interpretation: str
14
- resource_id: str
15
-
16
-
17
- class ContentInterpreterAPI:
18
- def interpret(self, request: ContentInterpreterRequest) -> ContentInterpreterResponse:
19
- raise NotImplementedError
@@ -1,21 +0,0 @@
1
- from agi_med_common.models import ChatItem
2
- from pydantic import BaseModel
3
-
4
-
5
- class ContentInterpreterRemoteRequest(BaseModel):
6
- kind: str
7
- query: str
8
- resource_fname: str
9
- resource: bytes
10
- chat: ChatItem | None = None
11
-
12
-
13
- class ContentInterpreterRemoteResponse(BaseModel):
14
- interpretation: str
15
- resource_fname: str
16
- resource: bytes
17
-
18
-
19
- class ContentInterpreterRemoteAPI:
20
- def interpret_remote(self, request: ContentInterpreterRemoteRequest) -> ContentInterpreterRemoteResponse:
21
- raise NotImplementedError