agi-med-common 5.0.21__py3-none-any.whl → 5.0.22__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.
@@ -1,4 +1,4 @@
1
- __version__ = "5.0.21"
1
+ __version__ = "5.0.22"
2
2
 
3
3
  from .models import (
4
4
  MTRSLabelEnum,
@@ -0,0 +1,68 @@
1
+ from typing import List, Tuple
2
+
3
+ from agi_med_common.models import Chat, ChatMessage, DomainInfo, TrackInfo
4
+ from pydantic import BaseModel
5
+
6
+
7
+ Value = str
8
+ Interpretation = str
9
+ ResourceId = str
10
+
11
+
12
+ class ChatManagerAPI:
13
+ def get_domains(self, language_code: str, client_id: str) -> List[DomainInfo]:
14
+ raise NotImplementedError
15
+
16
+ def get_tracks(self, language_code: str, client_id: str) -> List[TrackInfo]:
17
+ raise NotImplementedError
18
+
19
+ def get_response(self, chat: Chat, request_id: str = "") -> List[ChatMessage]:
20
+ raise NotImplementedError
21
+
22
+
23
+ class TextGeneratorAPI:
24
+ def process(self, chat: Chat, request_id: str = "") -> str:
25
+ raise NotImplementedError
26
+
27
+
28
+ class ContentInterpreterRemoteResponse(BaseModel):
29
+ interpretation: str
30
+ resource_fname: str
31
+ resource: bytes
32
+
33
+
34
+ class ContentInterpreterRemoteAPI:
35
+ def interpret_remote(
36
+ self,
37
+ kind: str,
38
+ query: str,
39
+ resource: bytes,
40
+ chat: Chat | None = None,
41
+ request_id: str = "",
42
+ ) -> ContentInterpreterRemoteResponse:
43
+ raise NotImplementedError
44
+
45
+
46
+ class ClassifierAPI:
47
+ def get_values(self) -> List[Value]:
48
+ raise NotImplementedError
49
+
50
+ def evaluate(self, chat: Chat, request_id: str = "") -> Value:
51
+ raise NotImplementedError
52
+
53
+
54
+ class CriticAPI:
55
+ def evaluate(self, text: str, chat: Chat | None = None, request_id: str = "") -> float:
56
+ raise NotImplementedError
57
+
58
+
59
+ class ContentInterpreterAPI:
60
+ def interpret(
61
+ self, kind: str, query: str, resource_id: str = "", chat: Chat | None = None, request_id: str = ""
62
+ ) -> Tuple[Interpretation, ResourceId | None]:
63
+ raise NotImplementedError
64
+
65
+
66
+ class TextProcessorAPI:
67
+ def process(self, text: str, chat: Chat | None = None, request_id: str = "") -> str:
68
+ raise NotImplementedError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 5.0.21
3
+ Version: 5.0.22
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
@@ -1,5 +1,6 @@
1
- agi_med_common/__init__.py,sha256=QT8-Vp_gbl_fO_xzcfHe3QhjAQq94eaiK1qIDSiE5fc,740
1
+ agi_med_common/__init__.py,sha256=fcjGkG64NHcHGY7u8OoKVNoB5hlBcJ7dZPqegeU2mTg,740
2
2
  agi_med_common/api.py,sha256=kGLKiebbF91s_7V2S55ETS7R6tQgZNkoFMoawdjeMYw,1860
3
+ agi_med_common/api_v2.py,sha256=gj6BPEAOvpT6GHWeE7bzmKIR-pvq0yORZ3L0ADvI8ps,1828
3
4
  agi_med_common/file_storage.py,sha256=T0Hbs4W-pWO6HdWcmlVqABrQHYdq7lLZH4_Vu-YNVbw,1802
4
5
  agi_med_common/parallel_map.py,sha256=Qx6xe7DqlEUDpSucp5Hm8r9y9Iquwh9JvX7lOqHhnOw,921
5
6
  agi_med_common/type_union.py,sha256=diwmzcnbqkpGFckPHNw9o8zyQ955mOGNvhTlcBJ0RMI,1905
@@ -15,7 +16,7 @@ agi_med_common/models/tracks.py,sha256=UP-jeWqDiCK6dyoMDfs7hemgl_xsJKee_DApjBf-X
15
16
  agi_med_common/models/widget.py,sha256=aJZ2vWx_PTFN02Wz16eokz9IIVrxqNuZYVDqLG36toE,710
16
17
  agi_med_common/models/base_config_models/__init__.py,sha256=KjS_bSCka8BOMsigwcIML-e6eNB2ouMU6gxlhRmzeuY,44
17
18
  agi_med_common/models/base_config_models/gigachat_config.py,sha256=WNSCTO8Fjpxc1v2LRUHfKqo9aeMDpXltTHYBFgTD2N0,422
18
- agi_med_common-5.0.21.dist-info/METADATA,sha256=M5m8hY1_rAfWCLd7d9zhRaNZlz5S-SSHPdxOTDpc9tE,518
19
- agi_med_common-5.0.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- agi_med_common-5.0.21.dist-info/top_level.txt,sha256=26o565jF_7wYQj7-YJfTedtT9yDxDcf8RNikOYuPq78,15
21
- agi_med_common-5.0.21.dist-info/RECORD,,
19
+ agi_med_common-5.0.22.dist-info/METADATA,sha256=TZUf6S7Qxo1qyi-chVFW9oVW9SniMqdGyu49iUg5v0Y,518
20
+ agi_med_common-5.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ agi_med_common-5.0.22.dist-info/top_level.txt,sha256=26o565jF_7wYQj7-YJfTedtT9yDxDcf8RNikOYuPq78,15
22
+ agi_med_common-5.0.22.dist-info/RECORD,,