mmar-mapi 1.0.24__tar.gz → 1.0.25__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.

Potentially problematic release.


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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mmar-mapi
3
- Version: 1.0.24
3
+ Version: 1.0.25
4
4
  Summary: Common pure/IO utilities for multi-modal architectures team
5
5
  Keywords:
6
6
  Author: Eugene Tagin
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "mmar-mapi"
3
3
  # dynamic version is not supported yet on uv_build
4
- version = "1.0.24"
4
+ version = "1.0.25"
5
5
  description = "Common pure/IO utilities for multi-modal architectures team"
6
6
  authors = [{name = "Eugene Tagin", email = "tagin@airi.net"}]
7
7
  license = "MIT"
@@ -44,7 +44,7 @@ class BinaryClassifiersAPI:
44
44
  def get_classifiers(self) -> list[str]:
45
45
  raise NotImplementedError
46
46
 
47
- def evaluate(self, *, classifier: str, text: str) -> bool:
47
+ def evaluate(self, *, classifier: str | None = None, text: str) -> bool:
48
48
  raise NotImplementedError
49
49
 
50
50
 
@@ -52,18 +52,34 @@ class LLMAccessorAPI:
52
52
  def get_entrypoint_keys(self) -> list[str]:
53
53
  raise NotImplementedError
54
54
 
55
- def get_response(self, *, prompt: str, entrypoint_key: str | None = None, max_retries: int = 1) -> str:
55
+ def get_response(
56
+ self,
57
+ *,
58
+ prompt: str,
59
+ resource_id: ResourceId | None = None,
60
+ entrypoint_key: str | None = None,
61
+ max_retries: int = 1,
62
+ ) -> str:
56
63
  raise NotImplementedError
57
64
 
58
- def get_response_by_payload(self, *, payload: dict[str, Any], entrypoint_key: str | None = None, max_retries: int = 1) -> str:
65
+ def get_response_by_payload(
66
+ self,
67
+ *,
68
+ payload: dict[str, Any],
69
+ resource_id: ResourceId | None = None,
70
+ entrypoint_key: str | None = None,
71
+ max_retries: int = 1,
72
+ ) -> str:
59
73
  raise NotImplementedError
60
74
 
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:
75
+ def get_embedding(
76
+ self,
77
+ *,
78
+ prompt: str,
79
+ resource_id: ResourceId | None = None,
80
+ entrypoint_key: str | None = None,
81
+ max_retries: int = 1,
82
+ ) -> list[float]:
67
83
  raise NotImplementedError
68
84
 
69
85
 
@@ -71,12 +87,12 @@ class TranslatorAPI:
71
87
  def get_lang_codes(self) -> list[str]:
72
88
  raise NotImplementedError
73
89
 
74
- def translate(self, *, text: str, lang_code_from: str | None, lang_code_to: str) -> str:
90
+ def translate(self, *, text: str, lang_code_from: str | None = None, lang_code_to: str) -> str:
75
91
  raise NotImplementedError
76
92
 
77
93
 
78
94
  class CriticAPI:
79
- def evaluate(self, *, text: str, chat: Chat | None = None) -> float:
95
+ def evaluate(self, *, text: str, chat: Chat | None = None) -> float: # TODO replace float with bool
80
96
  raise NotImplementedError
81
97
 
82
98
 
@@ -159,7 +175,8 @@ class ExtractedImageMetadata(BaseModel):
159
175
 
160
176
 
161
177
  class ExtractedPicture(ExtractedImage, ExtractedImageMetadata):
162
- " Image of part of page "
178
+ "Image of part of page"
179
+
163
180
  pass
164
181
 
165
182
 
@@ -168,7 +185,8 @@ class ExtractedTable(ExtractedImage, ExtractedImageMetadata):
168
185
 
169
186
 
170
187
  class ExtractedPageImage(ExtractedImage):
171
- " Image of all page "
188
+ "Image of all page"
189
+
172
190
  pass
173
191
 
174
192
 
File without changes
File without changes