mmar-mapi
Multimodal architectures Maestro API — common pure/IO utilities for multi-modal architectures team.
Installation
pip install mmar-mapi
Overview
A Python library providing foundational utilities for building conversational AI systems, with particular focus on medical/healthcare applications.
Core Features
- Chat Management: Framework for managing conversations with flexible message types
- File Storage: Resource management with deduplication support
- Document Processing: Content extraction from various document types
- LLM Integration: Interfaces for Large Language Model communication
- XML Parsing: Utilities for medical diagnostic data
Quick Start
from mmar_mapi import Chat, HumanMessage, AIMessage, make_content
# Create a chat session
chat = Chat(
context=Context(session_id="session-123", user_id="user-456"),
messages=[
HumanMessage(content=make_content("Hello, AI!")),
AIMessage(content=make_content("How can I help you today?"))
]
)
from mmar_mapi import FileStorage, ResourceId
# Store and retrieve files
storage = FileStorage()
resource_id = storage.upload(b"file content")
content = storage.download(resource_id)
Main Modules
Chat System (mmar_mapi.models.chat)
Chat— Conversation container with context and messagesHumanMessage,AIMessage,MiscMessage— Message typesContent— Flexible content supporting text, resources, commands, and widgetsWidget— UI components for interactive conversations
File Storage (mmar_mapi.file_storage)
FileStorageAPI— Abstract interface for file operationsFileStorage— Implementation with deduplicationFileStorageBasic— Simple file access without storageResourceId— Type-safe resource identifiers
Models (mmar_mapi.models)
TrackInfo,DomainInfo— Track and domain categorizationDiagnosticsXMLTagEnum,MTRSXMLTagEnum,UncertaintyXMLTagEnum— Medical XML tags
Utilities (mmar_mapi.utils)
make_session_id()— Generate unique session identifierschunked()— Split iterables into chunksXMLParser— XML processing utilities
Services (mmar_mapi.services)
Service APIs for integrating with external systems:
LLM Hub (llm_hub.py)
LLMHubAPI— Interface for LLM communicationLLMCallProps— Call configurationLLMPayload— Message payload with attachmentsLLMResponseExt— Extended response format
Document Extractor (document_extractor.py)
DocumentExtractorAPI— Extract content from documentsDocExtractionSpec— Extraction configurationExtractedTable,ExtractedPicture,ExtractedPageImage— Extraction results
Chat Manager (chat_manager.py)
ChatManagerAPI— Manage domains, tracks, and chat responses
Text Processing (text_generator.py, text_processor.py)
TextGeneratorAPI— Generate text from chatTextProcessorAPI— Process text with chat context
Content Interpreter (content_interpreter.py)
ContentInterpreterAPI— Interpret content resourcesContentInterpreterRemoteAPI— Remote content interpretationContentInterpreterRemoteResponse— Remote response format
Additional Services
BinaryClassifiersAPI— Binary text classificationTranslatorAPI— Language translationCriticAPI— Text evaluationTextExtractorAPI— Extract text from resources
Metadata
Release files for mmar-mapi 1.7.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mmar_mapi-1.7.9.tar.gz | 19.0 kB | Without provenance | Details for mmar_mapi-1.7.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mmar_mapi-1.7.9-py3-none-any.whl | Python 3 | none | any | Details for mmar_mapi-1.7.9-py3-none-any.whl |
Total release size: 47.3 kB
Release files / mmar_mapi-1.7.9.tar.gz
| Download URL | mmar_mapi-1.7.9.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
261fde9ab6490fb70ea744fb635d070be72cd0370c43970216e5aef16704aa84
|
|
BLAKE2b-256 checksum How to use checksums |
ec702c1e01221b473e3cdad37158e8b4da80fa86b1a4528447e910ef81c4d13c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Release files / mmar_mapi-1.7.9-py3-none-any.whl
| Download URL | mmar_mapi-1.7.9-py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38849a660f4e630c3fa863017e7d62339f6ef5d432ffdc83a408f351cea01d93
|
|
BLAKE2b-256 checksum How to use checksums |
b5282069b8659ddeeec0eb349c73da74f94526b523714a58652e9684353e9575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Security for mmar-mapi 1.7.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.