agi-med-common 5.1.9__py3-none-any.whl → 5.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.
@@ -1,4 +1,4 @@
1
- __version__ = "5.1.9"
1
+ __version__ = "5.2.1"
2
2
 
3
3
  from .file_storage import FileStorage, ResourceId
4
4
  from .models.base import Base
agi_med_common/api.py CHANGED
@@ -2,7 +2,6 @@ from typing import List, Tuple
2
2
 
3
3
  from agi_med_common.models.chat import Chat, ChatMessage
4
4
  from agi_med_common.models.tracks import DomainInfo, TrackInfo
5
-
6
5
  from pydantic import BaseModel
7
6
 
8
7
 
@@ -12,18 +11,18 @@ ResourceId = str
12
11
 
13
12
 
14
13
  class ChatManagerAPI:
15
- def get_domains(self, language_code: str, client_id: str) -> List[DomainInfo]:
14
+ def get_domains(self, *, client_id: str, language_code: str = "ru") -> List[DomainInfo]:
16
15
  raise NotImplementedError
17
16
 
18
- def get_tracks(self, language_code: str, client_id: str) -> List[TrackInfo]:
17
+ def get_tracks(self, *, client_id: str, language_code: str = "ru") -> List[TrackInfo]:
19
18
  raise NotImplementedError
20
19
 
21
- def get_response(self, chat: Chat, request_id: str = "") -> List[ChatMessage]:
20
+ def get_response(self, *, chat: Chat) -> List[ChatMessage]:
22
21
  raise NotImplementedError
23
22
 
24
23
 
25
24
  class TextGeneratorAPI:
26
- def process(self, chat: Chat, request_id: str = "") -> str:
25
+ def process(self, *, chat: Chat) -> str:
27
26
  raise NotImplementedError
28
27
 
29
28
 
@@ -35,12 +34,7 @@ class ContentInterpreterRemoteResponse(BaseModel):
35
34
 
36
35
  class ContentInterpreterRemoteAPI:
37
36
  def interpret_remote(
38
- self,
39
- kind: str,
40
- query: str,
41
- resource: bytes,
42
- chat: Chat | None = None,
43
- request_id: str = "",
37
+ self, *, kind: str, query: str, resource: bytes, chat: Chat | None = None
44
38
  ) -> ContentInterpreterRemoteResponse:
45
39
  raise NotImplementedError
46
40
 
@@ -49,22 +43,22 @@ class ClassifierAPI:
49
43
  def get_values(self) -> List[Value]:
50
44
  raise NotImplementedError
51
45
 
52
- def evaluate(self, chat: Chat, request_id: str = "") -> Value:
46
+ def evaluate(self, *, chat: Chat) -> Value:
53
47
  raise NotImplementedError
54
48
 
55
49
 
56
50
  class CriticAPI:
57
- def evaluate(self, text: str, chat: Chat | None = None, request_id: str = "") -> float:
51
+ def evaluate(self, *, text: str, chat: Chat | None = None) -> float:
58
52
  raise NotImplementedError
59
53
 
60
54
 
61
55
  class ContentInterpreterAPI:
62
56
  def interpret(
63
- self, kind: str, query: str, resource_id: str = "", chat: Chat | None = None, request_id: str = ""
57
+ self, *, kind: str, query: str, resource_id: str = "", chat: Chat | None = None
64
58
  ) -> Tuple[Interpretation, ResourceId | None]:
65
59
  raise NotImplementedError
66
60
 
67
61
 
68
62
  class TextProcessorAPI:
69
- def process(self, text: str, chat: Chat | None = None, request_id: str = "") -> str:
63
+ def process(self, *, text: str, chat: Chat | None = None) -> str:
70
64
  raise NotImplementedError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 5.1.9
3
+ Version: 5.2.1
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
@@ -1,5 +1,5 @@
1
- agi_med_common/__init__.py,sha256=9EkYGgaqhL11TF5LrvdpyfsWGlfKG-MBB06DAhSc2BE,828
2
- agi_med_common/api.py,sha256=aKiqLtliBQfFPGB9Rc46XxrWuf7cI5DgpM0B6p823i8,1874
1
+ agi_med_common/__init__.py,sha256=VLi6VELva2JYP_2r9-QPTnpY8KeusA59MRmq9Bg7nhY,828
2
+ agi_med_common/api.py,sha256=OHN4kFZoJ_ST6tM1NtQsgK19DXPAA_65JMMTCQ4hXIg,1719
3
3
  agi_med_common/file_storage.py,sha256=lEh9TyzUu8dS9WkaEcshSUxESXQ1i7PAyXqejdambpg,1802
4
4
  agi_med_common/parallel_map.py,sha256=drqv6yBfF43ShLl-U_8W1_B6tp3jQadxSnsf2AyTgXo,1037
5
5
  agi_med_common/type_union.py,sha256=diwmzcnbqkpGFckPHNw9o8zyQ955mOGNvhTlcBJ0RMI,1905
@@ -15,7 +15,7 @@ agi_med_common/models/tracks.py,sha256=HKDp-BX1p7AlDfSEKfOKCu0TRSK9cD4Dmq1vJt8oR
15
15
  agi_med_common/models/widget.py,sha256=aJZ2vWx_PTFN02Wz16eokz9IIVrxqNuZYVDqLG36toE,710
16
16
  agi_med_common/models/base_config_models/__init__.py,sha256=KjS_bSCka8BOMsigwcIML-e6eNB2ouMU6gxlhRmzeuY,44
17
17
  agi_med_common/models/base_config_models/gigachat_config.py,sha256=QvKTnp0VioXzd3_PUgNBeYx5RDTZT-45j-Ll-wXEI_o,421
18
- agi_med_common-5.1.9.dist-info/METADATA,sha256=hhAEfXXlurdIojzAjznQV42-XPvOn536nxDGOn0ufyU,517
19
- agi_med_common-5.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- agi_med_common-5.1.9.dist-info/top_level.txt,sha256=26o565jF_7wYQj7-YJfTedtT9yDxDcf8RNikOYuPq78,15
21
- agi_med_common-5.1.9.dist-info/RECORD,,
18
+ agi_med_common-5.2.1.dist-info/METADATA,sha256=SwwM-1mPMtPhfz4g5oakjb-kFNci29diOru7lRssNEg,517
19
+ agi_med_common-5.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ agi_med_common-5.2.1.dist-info/top_level.txt,sha256=26o565jF_7wYQj7-YJfTedtT9yDxDcf8RNikOYuPq78,15
21
+ agi_med_common-5.2.1.dist-info/RECORD,,