agi-med-common 5.1.9__tar.gz → 5.2.1__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.
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/PKG-INFO +1 -1
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/__init__.py +1 -1
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/api.py +9 -15
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common.egg-info/PKG-INFO +1 -1
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/README.md +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/pyproject.toml +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/setup.cfg +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/file_storage.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/__init__.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/base.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/chat.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/chat_item.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/enums.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/tracks.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/models/widget.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/parallel_map.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/type_union.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/utils.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/validators.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common/xml_parser.py +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common.egg-info/requires.txt +0 -0
- {agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common.egg-info/top_level.txt +0 -0
@@ -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,
|
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,
|
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
|
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
|
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
|
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
|
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
|
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
|
63
|
+
def process(self, *, text: str, chat: Chat | None = None) -> str:
|
70
64
|
raise NotImplementedError
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{agi_med_common-5.1.9 → agi_med_common-5.2.1}/src/agi_med_common.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|