mmar-mapi 1.0.22__tar.gz → 1.0.23__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.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,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.22"
4
+ version = "1.0.23"
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"
@@ -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
 
File without changes
File without changes