mmar-mapi 1.0.8__tar.gz → 1.0.9__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.8
3
+ Version: 1.0.9
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.8"
4
+ version = "1.0.9"
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"
@@ -249,6 +249,9 @@ class Chat(Base):
249
249
  message = messages[-1]
250
250
  return message if isinstance(message, HumanMessage) else None
251
251
 
252
+ def count_messages(self, func: Callable[[ChatMessage], bool]) -> int:
253
+ return sum(map(func, self.messages))
254
+
252
255
 
253
256
  def make_content(
254
257
  text: str | None = None,
File without changes
File without changes