mmar-mapi 1.0.22__py3-none-any.whl → 1.0.23__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.

Potentially problematic release.


This version of mmar-mapi might be problematic. Click here for more details.

mmar_mapi/api.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from enum import StrEnum
2
- from typing import Annotated
2
+ from typing import Annotated, Any
3
3
 
4
4
  from pydantic import AfterValidator, BaseModel
5
5
 
@@ -40,11 +40,38 @@ class ContentInterpreterRemoteAPI:
40
40
  raise NotImplementedError
41
41
 
42
42
 
43
- class ClassifierAPI:
44
- def get_values(self) -> list[Value]:
43
+ class BinaryClassifiersAPI:
44
+ def get_classifiers(self) -> list[str]:
45
45
  raise NotImplementedError
46
46
 
47
- def evaluate(self, *, chat: Chat) -> Value:
47
+ def evaluate(self, *, classifier: str, text: str) -> bool:
48
+ raise NotImplementedError
49
+
50
+
51
+ class LLMAccessorAPI:
52
+ def get_entrypoint_keys(self) -> list[str]:
53
+ raise NotImplementedError
54
+
55
+ def get_response(self, *, prompt: str, entrypoint_key: str | None = None, max_retries: int = 1) -> str:
56
+ raise NotImplementedError
57
+
58
+ def get_response_by_payload(self, *, payload: dict[str, Any], entrypoint_key: str | None = None, max_retries: int = 1) -> str:
59
+ raise NotImplementedError
60
+
61
+ def get_embedding(self, *, prompt: str, entrypoint_key: str | None = None, max_retries: int = 1) -> list[float]:
62
+ raise NotImplementedError
63
+
64
+ def get_image_response(
65
+ self, *, prompt: str, resource_id: ResourceId, entrypoint_key: str | None = None, max_retries: int = 1
66
+ ) -> str:
67
+ raise NotImplementedError
68
+
69
+
70
+ class TranslatorAPI:
71
+ def get_lang_codes(self) -> list[str]:
72
+ raise NotImplementedError
73
+
74
+ def translate(self, *, text: str, lang_code_from: str | None, lang_code_to: str) -> str:
48
75
  raise NotImplementedError
49
76
 
50
77
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mmar-mapi
3
- Version: 1.0.22
3
+ Version: 1.0.23
4
4
  Summary: Common pure/IO utilities for multi-modal architectures team
5
5
  Keywords:
6
6
  Author: Eugene Tagin
@@ -1,5 +1,5 @@
1
1
  mmar_mapi/__init__.py,sha256=9Q5xsrj26uUnn7ZWvvJUvdVIuzC2oCIeNB4dEoqjF-o,1256
2
- mmar_mapi/api.py,sha256=tRX7XhfiHD73W7MdMnWHUZ9IsMpLtRl7PdT3OwyU0Mo,4895
2
+ mmar_mapi/api.py,sha256=QvbFY-r5d_V6jb9zBj_BL-tbquynR4v1K_8OjMBtXJU,5908
3
3
  mmar_mapi/decorators_maybe_lru_cache.py,sha256=eO2I6t1fHLUNRABClK1c8EZzHAmCeSK6O-hbJGb2c9E,444
4
4
  mmar_mapi/file_storage.py,sha256=xJU59HmXFsfc53XALdx53IwyqV_k4218AzzXq1Q65Js,5052
5
5
  mmar_mapi/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -13,7 +13,7 @@ mmar_mapi/type_union.py,sha256=diwmzcnbqkpGFckPHNw9o8zyQ955mOGNvhTlcBJ0RMI,1905
13
13
  mmar_mapi/utils.py,sha256=FlW9n-84xz2zSHsahHzJ3Y4Wu5mjpFer6t9z6PF6lS0,488
14
14
  mmar_mapi/utils_import.py,sha256=pUyMFd8SItTxBKI-GO9JhRmy43jG_OQlUPr8QCBOSwg,1682
15
15
  mmar_mapi/xml_parser.py,sha256=VvLIX_XCZao9i0qqpTVx8nx0vbFXSe8pEbdJdXnj97g,568
16
- mmar_mapi-1.0.22.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
17
- mmar_mapi-1.0.22.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
18
- mmar_mapi-1.0.22.dist-info/METADATA,sha256=296uDSncFFxzt5-QPExV8vJmRKOMSDoGNYB7IaCGoj8,944
19
- mmar_mapi-1.0.22.dist-info/RECORD,,
16
+ mmar_mapi-1.0.23.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
17
+ mmar_mapi-1.0.23.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
18
+ mmar_mapi-1.0.23.dist-info/METADATA,sha256=5PQS2XT9NvB5gYkSANUn441g0NUP3famSLZPt69V5ZU,944
19
+ mmar_mapi-1.0.23.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.22
2
+ Generator: uv 0.8.24
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any