Core engine for Maestro AI agent — providers, trust layer, tools, conversation engine
Project description
maestro-core
Core engine for Maestro AI agent. Multi-provider, privacy-first.
Features
- 4 LLM Providers: Anthropic (Claude), OpenAI (GPT), Google (Gemini), Ollama (local)
- Trust Layer: Automatic anonymization of sensitive data (NIR, SIRET, IBAN, emails, names, API keys)
- Provider Router: Auto-route to local/cloud based on data sensitivity
- Conversation Engine: Turn loop with tool calling
- Tool Framework: Base classes + 6 built-in tools (bash, file_read, file_write, file_edit, grep, glob)
Installation
pip install maestro-core
Usage
from maestro_core.engine import ConversationEngine
from maestro_core.provider_router import ProviderRouter, RoutingMode
from maestro_core.tools import ToolRegistry
from maestro_core.tools.bash import BashTool
from maestro_core.config import MaestroConfig
from maestro_core.trust.anonymizer import TrustMode
# Setup
config = MaestroConfig()
router = ProviderRouter(config, RoutingMode.AUTO, TrustMode.STANDARD)
tools = ToolRegistry()
tools.register(BashTool())
engine = ConversationEngine(router=router, tools=tools)
# Chat
result = await engine.run_turn("List Python files", model="claude-sonnet-4")
print(result.response_text)
Trust Layer
from maestro_core.trust.anonymizer import Anonymizer, TrustMode
anon = Anonymizer(TrustMode.STANDARD)
safe = anon.anonymize_text("NIR 267041305561777 SIRET 41021468800013")
# → "NIR [NIR_1] SIRET [SIRET_1]"
restored = anon.deanonymize_text(safe)
# → "NIR 267041305561777 SIRET 41021468800013"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
maestro_core-0.8.0.tar.gz
(173.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
maestro_core-0.8.0-py3-none-any.whl
(254.3 kB
view details)
File details
Details for the file maestro_core-0.8.0.tar.gz.
File metadata
- Download URL: maestro_core-0.8.0.tar.gz
- Upload date:
- Size: 173.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d739d90ccef248c393c85e5a0f01814dd7b44e5f778fba512d8ed188d4acd576
|
|
| MD5 |
4827b0b17aea1ad1052d124d6dc99a57
|
|
| BLAKE2b-256 |
e89b0f8fb32a44f04ae9f183c33325e265620ba9c1643664105738d8ade8a502
|
File details
Details for the file maestro_core-0.8.0-py3-none-any.whl.
File metadata
- Download URL: maestro_core-0.8.0-py3-none-any.whl
- Upload date:
- Size: 254.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002a9d6ae5ae95174d129596928c10a4682083d19d5454a6557e050747d34ad4
|
|
| MD5 |
6c3b8de7ed1894ea5e6b76c7ec46d70d
|
|
| BLAKE2b-256 |
a08b447c9b0dd50d0223e5262e1c89ea4cc27b5421af421d5b44f1557afa8c02
|